2019-12-20 23:28:12 +03:00
|
|
|
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, {
|
2019-12-20 23:28:12 +03:00
|
|
|
mode: 'development',
|
2020-02-19 16:24:59 +03:00
|
|
|
devtool: 'source-map',
|
2019-12-20 23:28:12 +03:00
|
|
|
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
|
|
|
})
|