From b1f83647b4644a5f0244740388b5496862c2b4cb Mon Sep 17 00:00:00 2001 From: Diana Catalina Olarte Date: Wed, 31 Jul 2024 09:56:32 +1000 Subject: [PATCH] docs: add comment to describe the use of RemoveEmptyScriptsPlugin --- config/webpack.common.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/webpack.common.config.js b/config/webpack.common.config.js index c1cc0f440..38f2152df 100644 --- a/config/webpack.common.config.js +++ b/config/webpack.common.config.js @@ -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(), ],