1 | const webpack = require('webpack');
|
2 | const baseConfig = require('./webpack.config.base');
|
3 |
|
4 | const config = Object.create(baseConfig);
|
5 | config.plugins = [
|
6 | new webpack.optimize.OccurenceOrderPlugin(),
|
7 | new webpack.DefinePlugin({
|
8 | 'process.env.NODE_ENV': JSON.stringify('production'),
|
9 | }),
|
10 | new webpack.optimize.UglifyJsPlugin({
|
11 | compressor: {
|
12 | screw_ie8: true,
|
13 | warnings: false,
|
14 | },
|
15 | }),
|
16 | ];
|
17 |
|
18 | module.exports = config;
|