From ccf73485cfba952451144d7841cbb3fac8368867 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 8 Apr 2023 11:46:35 +0530 Subject: Injecting shared modules for the injected scripts, further reusing code. --- config/webpack/plugins/create-rules-webpack-plugin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/webpack/plugins/create-rules-webpack-plugin.js') diff --git a/config/webpack/plugins/create-rules-webpack-plugin.js b/config/webpack/plugins/create-rules-webpack-plugin.js index 4a02e2f..d02decd 100644 --- a/config/webpack/plugins/create-rules-webpack-plugin.js +++ b/config/webpack/plugins/create-rules-webpack-plugin.js @@ -8,8 +8,7 @@ class CreateRulesPlugin { compilation.hooks.processAssets.tap( { name: "CreateRulesPlugin", - stage: compiler.webpack.Compilation.PROCESS_ASSETS_ADDITIONAL, - additionalAssets: true + stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL }, assets => { const ruleFileNames = fs.readdirSync(path.resolve(SOURCE_DIR, "rules")); -- cgit v1.2.3