21 lines
453 B
JavaScript
21 lines
453 B
JavaScript
'use strict';
|
|
|
|
const webpack = require('webpack');
|
|
const baseConfig = require('./webpack.config.base');
|
|
|
|
const config = Object.create(baseConfig);
|
|
config.plugins = [
|
|
new webpack.optimize.OccurrenceOrderPlugin(),
|
|
new webpack.DefinePlugin({
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
}),
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
compressor: {
|
|
screw_ie8: true,
|
|
warnings: false,
|
|
},
|
|
}),
|
|
];
|
|
|
|
module.exports = config;
|