jellyfin-web/webpack.dev.js

25 lines
624 B
JavaScript
Raw Normal View History

2020-08-16 11:24:45 -07:00
const path = require('path');
2020-05-04 03:44:12 -07:00
const common = require('./webpack.common');
const merge = require('webpack-merge');
2019-09-30 13:51:46 -07:00
module.exports = merge(common, {
// In order for live reload to work we must use "web" as the target not "browserlist"
target: 'web',
2020-05-04 03:44:12 -07:00
mode: 'development',
entry: './scripts/site.js',
2020-08-15 03:44:52 -07:00
devtool: 'source-map',
2019-09-30 16:58:05 -07:00
module: {
rules: [
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader']
}
2019-09-30 16:58:05 -07:00
]
2020-08-15 03:44:52 -07:00
},
2020-08-16 11:24:45 -07:00
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true
}
2019-09-30 13:51:46 -07:00
});