mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-10-26 16:45:18 +00:00
Cleanup duplication in webpack dev config
This commit is contained in:
1 parent
3a14418e47
commit
7d5df6ab3e
1 file changed
+2
-8
+2
-8
@@ -2,7 +2,7 @@ const common = require('./webpack.common');
|
||||
const { merge } = require('webpack-merge');
|
||||
|
||||
module.exports = merge(common, {
|
||||
// In order for live reload to work we must use "web" as the target not "browserlist"
|
||||
// In order for live reload to work we must use "web" as the target not "browserslist"
|
||||
target: process.env.WEBPACK_SERVE ? 'web' : 'browserslist',
|
||||
mode: 'development',
|
||||
entry: './scripts/site.js',
|
||||
@@ -10,13 +10,7 @@ module.exports = merge(common, {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader']
|
||||
},
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
test: /\.(js|jsx|ts|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader']
|
||||
|
||||
Reference in new issue
Block a user