aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/plugins
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-27 08:37:44 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-27 11:09:46 +0530
commit84f86da2faab3af73e3a55ab576ca14a0d38259e (patch)
treec9680f58058f6eb836362ed14f23c15d0c89e9e2 /config/webpack/plugins
parent068a14ffa464d6cb0ccc5c3cec11d10d8cceae90 (diff)
downloadbanglar-bhumi-utils-84f86da2faab3af73e3a55ab576ca14a0d38259e.tar.gz
banglar-bhumi-utils-84f86da2faab3af73e3a55ab576ca14a0d38259e.zip
Automatic conversion of import statements into dynamic imports.
Diffstat (limited to 'config/webpack/plugins')
-rw-r--r--config/webpack/plugins/create-manifest-webpack-plugin/index.js8
1 files changed, 5 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 77f5959..4ab363f 100644
--- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js
+++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js
@@ -38,12 +38,14 @@ class CreateManifestPlugin {
const resources = [];
for (const assetName in assets) {
- if (/^assets\/.*\.(jpg|png|gif)$/.test(assetName))
+ if (/^assets\/.*\.(jpg|png|gif)$/.test(assetName)) {
resources.push(assetName);
+ }
}
- for (const sharedModule of sharedModules)
- resources.push(`shared/${sharedModule}.js`);
+ for (const sharedModule of sharedModules) {
+ resources.push(`shared/${getFileNameHash(sharedModule)}.js`);
+ }
if (resources.length > 0) {
manifest.web_accessible_resources = [