diff options
Diffstat (limited to 'config/webpack/plugins/create-manifest-webpack-plugin/index.js')
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index a1a21a8..8705039 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -22,8 +22,11 @@ class CreateManifestPlugin { for (const scriptPath in scripts) { for (const scriptType in scripts[scriptPath]) { + const matches = [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}`]; + if (scriptPath !== "*") + matches.push(`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}.action`); manifest.content_scripts.push({ - matches: [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}`], + matches, js: [`scripts/${getFileNameHash(scriptPath)}/${scriptType}.js`], run_at: getScriptRuntimeFromType(scriptType) }); |
