blob: d6c26594b125e6acacba8a13b6086fea554fd82a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
const { merge } = require('webpack-merge')
const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = merge(common, {
mode: 'development',
devtool: 'source-map',
devServer: {
historyApiFallback: true,
noInfo: true,
overlay: true,
},
optimization: {
minimizer: [
new TerserPlugin({
parallel: true,
extractComments: false,
terserOptions: {
ecma: 6,
},
}),
],
},
})
|