18 lines
386 B
JavaScript
18 lines
386 B
JavaScript
const merge = require('webpack-merge')
|
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
|
|
const common = require('./webpack.common.js')
|
|
|
|
module.exports = merge(common, {
|
|
plugins: [
|
|
new UglifyJSPlugin({
|
|
uglifyOptions: {
|
|
ie8: false,
|
|
dead_code: true,
|
|
output: {
|
|
comments: false,
|
|
beautify: false
|
|
}
|
|
}
|
|
})
|
|
]
|
|
})
|