mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 02:18:16 -07:00
36 lines
904 B
JavaScript
36 lines
904 B
JavaScript
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"
|
|
target: 'web',
|
|
mode: 'development',
|
|
entry: './scripts/site.js',
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|jsx)$/,
|
|
exclude: /node_modules/,
|
|
enforce: 'pre',
|
|
use: ['source-map-loader']
|
|
},
|
|
{
|
|
test: /\.(ts|tsx)$/,
|
|
exclude: /node_modules/,
|
|
enforce: 'pre',
|
|
use: ['source-map-loader']
|
|
}
|
|
]
|
|
},
|
|
devServer: {
|
|
compress: true,
|
|
client: {
|
|
overlay: {
|
|
errors: true,
|
|
warnings: false
|
|
}
|
|
}
|
|
}
|
|
});
|