polls/webpack.dev.js

26 строки
472 B
JavaScript
Исходник Обычный вид История

const merge = require('webpack-merge')
const common = require('./webpack.common.js')
2020-02-19 16:24:59 +03:00
const TerserPlugin = require('terser-webpack-plugin')
2018-12-31 23:12:46 +03:00
module.exports = merge(common, {
mode: 'development',
2020-02-19 16:24:59 +03:00
devtool: 'source-map',
devServer: {
historyApiFallback: true,
noInfo: true,
overlay: true
},
2020-02-19 16:24:59 +03:00
optimization: {
minimizer: [
new TerserPlugin({
parallel: true,
cache: true,
extractComments: false,
terserOptions: {
ecma: 6
}
})
]
}
2018-12-31 23:12:46 +03:00
})