UNPKG

437 BJavaScriptView Raw
1const webpack = require('webpack');
2const baseConfig = require('./webpack.config.base');
3
4const config = Object.create(baseConfig);
5config.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
18module.exports = config;