Skip to content

Commit

Permalink
docs: add comment to describe the use of RemoveEmptyScriptsPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Jul 30, 2024
1 parent dfdcbdb commit b1f8364
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ module.exports = {
},
},
plugins: [
// RemoveEmptyScriptsPlugin get rid of empty scripts generated by webpack when using mini-css-extract-plugin
// This helps to clean up the final bundle application
// See: https://www.npmjs.com/package/webpack-remove-empty-scripts#usage-with-mini-css-extract-plugin

new RemoveEmptyScriptsPlugin(),
new ParagonWebpackPlugin(),
],
Expand Down

0 comments on commit b1f8364

Please sign in to comment.