Skip to content

Commit

Permalink
Production & CleanWebpackPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb10101 committed Oct 12, 2021
1 parent f4bdf66 commit 1008264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ module.exports = (env, argv) => {
clearConsole: false
}),
new WebpackManifestPlugin(),
new CleanWebpackPlugin(),
new CleanWebpackPlugin({
verbose: false,
cleanOnceBeforeBuildPatterns: ['**/*', '!manifest.json'],
}),
new MiniCssExtractPlugin({
filename: '[name].css',
// filename: '[name].[contenthash].css',
Expand All @@ -94,6 +97,7 @@ module.exports = (env, argv) => {
performance: {
hints: false
},
mode: 'production',
stats: 'none',
devtool: 'source-map'
}
Expand Down

0 comments on commit 1008264

Please sign in to comment.