jellyfin-web/webpack.dev.js
vitorsemeano a48d466e6a fixes for lint errors
added missing packages for lint
removed unecessary babel/polyfill
2020-11-05 23:21:35 +00:00

30 lines
715 B
JavaScript

const path = require('path');
const common = require('./webpack.common');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
mode: 'development',
entry: './scripts/standalone.js',
devtool: 'source-map',
module: {
rules: [
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader']
}
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html'
})
],
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true
}
});