Fixes build by updating Uglify
This commit is contained in:
parent
24d328c4b7
commit
0d28717647
|
@ -34,7 +34,7 @@ module.exports = {
|
|||
include: [
|
||||
path.join(__dirname, 'app'),
|
||||
path.join(__dirname, 'shared'),
|
||||
],
|
||||
]
|
||||
},
|
||||
{ test: /\.json$/, loader: 'json-loader' },
|
||||
// inline base64 URLs for <=8k images, direct URLs for the rest
|
||||
|
|
|
@ -3,6 +3,7 @@ var path = require('path');
|
|||
var webpack = require('webpack');
|
||||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
var ManifestPlugin = require('webpack-manifest-plugin');
|
||||
|
||||
commonWebpackConfig = require('./webpack.config');
|
||||
|
@ -25,8 +26,11 @@ productionWebpackConfig.plugins = [
|
|||
template: 'server/static/index.html',
|
||||
}),
|
||||
new ExtractTextPlugin({ filename: 'styles.[hash].css' }),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
new UglifyJsPlugin({
|
||||
sourceMap: true,
|
||||
uglifyOptions: {
|
||||
compress: true
|
||||
}
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
|
Reference in New Issue