Update performance dependencies

This commit is contained in:
Nicolas Gallagher
2017-04-13 20:37:08 -07:00
parent 761c42301d
commit 32183bb92a
3 changed files with 94 additions and 83 deletions

View File

@@ -10,17 +10,23 @@ module.exports = {
filename: 'performance.bundle.js'
},
module: {
loaders: [
rules: [
{
test: /\.css$/,
loader: 'style-loader!css-loader?module&localIdentName=[hash:base64:8]'
use: [
'style-loader',
{
loader: 'css-loader',
options: { module: true, localIdentName: '[hash:base64:8]' }
}
]
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
cacheDirectory: true
use: {
loader: 'babel-loader',
query: { cacheDirectory: true }
}
}
]
@@ -33,13 +39,11 @@ module.exports = {
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
dead_code: true,
screw_ie8: true,
warnings: true
warnings: false
}
})
],