aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/webpack/plugins/create-manifest-webpack-plugin/index.js4
-rw-r--r--config/webpack/utils/build-file.js3
2 files changed, 4 insertions, 3 deletions
diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js
index 92c3096..8dc0ae4 100644
--- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js
+++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js
@@ -57,10 +57,10 @@ class CreateManifestPlugin {
delete arrangedScripts["*"]["document_start"];
for (const scriptPath in arrangedScripts) {
- const matches = [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}`];
+ const matches = [`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}*`];
if (scriptPath === "Home")
- matches.push(`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}.action`);
+ matches.push(`*://banglarbhumi.gov.in/BanglarBhumi/${scriptPath}.action*`);
for (const scriptRuntime in arrangedScripts[scriptPath]) {
manifest.content_scripts.push({
diff --git a/config/webpack/utils/build-file.js b/config/webpack/utils/build-file.js
index 6d8fc85..2ab8d86 100644
--- a/config/webpack/utils/build-file.js
+++ b/config/webpack/utils/build-file.js
@@ -4,7 +4,8 @@ module.exports.getFileName = (fileName, prefix, justHash = false) => {
let hash = crypto
.createHash("md5")
.update(`${prefix}-${fileName}`)
- .digest("hex").substring(16);
+ .digest("hex")
+ .substring(16);
if (production) {
return hash;