From b7b840319aaf37cd48461e7a578cc859454a29e3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 22 Mar 2023 11:54:35 +0530 Subject: Added script for application receipt page. --- config/webpack/plugins/create-manifest-webpack-plugin/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/webpack/plugins/create-manifest-webpack-plugin') 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) }); -- cgit v1.2.3