webpack.prod.conf.js 544 Bytes
const webpack = require('webpack');
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin');
let webpackConfig = require('./webpack.base.conf.js');


webpackConfig.plugins.push(new webpack.DefinePlugin({
    'process.env': {
        NODE_ENV: '"production"'
    }
}));

webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
    compress: {
        warnings: false
    }
}));
webpackConfig.plugins.push(new OptimizeCSSPlugin({
    cssProcessorOptions: {
        safe: true
    }
}));


module.exports = webpackConfig;