1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Cleanup duplication in webpack dev config

This commit is contained in:
Bill Thornton 2022-03-31 14:03:02 -04:00
parent 3a14418e47
commit 7d5df6ab3e

View file

@ -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']