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