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(), ],