aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/plugins/create-manifest-webpack-plugin
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-13 18:30:50 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-13 18:30:50 +0530
commitbce4cff7f7144bc91d780e2dd2f8e1114109f407 (patch)
treebf528a65b9e4f3e99d780e71f7e7cff368dbc068 /config/webpack/plugins/create-manifest-webpack-plugin
parent976ae51dabe77686e405a2b99127485209c7c9cd (diff)
downloadbanglar-bhumi-utils-bce4cff7f7144bc91d780e2dd2f8e1114109f407.tar.gz
banglar-bhumi-utils-bce4cff7f7144bc91d780e2dd2f8e1114109f407.zip
Added background scripts.
Diffstat (limited to 'config/webpack/plugins/create-manifest-webpack-plugin')
-rw-r--r--config/webpack/plugins/create-manifest-webpack-plugin/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js
index 8dc0ae4..330c22f 100644
--- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js
+++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js
@@ -97,6 +97,8 @@ class CreateManifestPlugin {
];
}
+ manifest.background = { service_worker: "background.js" };
+
compilation.emitAsset(
"manifest.json",
new sources.RawSource(