Created
January 12, 2019 22:45
-
-
Save BiosBoy/a088658438353253cd48f452d4e93bbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------ | |
// BUNDLES OPTIMIZATION | |
// ------------------------------------ | |
const optimization = { | |
optimization: { | |
splitChunks: { | |
chunks: 'all', | |
minChunks: 2 | |
}, | |
minimizer: [ | |
new UglifyJsPlugin({ | |
uglifyOptions: { | |
compress: { | |
unused: true, | |
dead_code: true, | |
warnings: false | |
} | |
}, | |
sourceMap: true | |
}), | |
new OptimizeCSSAssetsPlugin({}) | |
] | |
}, | |
performance: { | |
hints: false | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment