diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-03-27 08:37:44 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-03-27 11:09:46 +0530 |
| commit | 84f86da2faab3af73e3a55ab576ca14a0d38259e (patch) | |
| tree | c9680f58058f6eb836362ed14f23c15d0c89e9e2 /config/webpack/plugins/create-manifest-webpack-plugin/index.js | |
| parent | 068a14ffa464d6cb0ccc5c3cec11d10d8cceae90 (diff) | |
| download | banglar-bhumi-utils-84f86da2faab3af73e3a55ab576ca14a0d38259e.tar.gz banglar-bhumi-utils-84f86da2faab3af73e3a55ab576ca14a0d38259e.zip | |
Automatic conversion of import statements into dynamic imports.
Diffstat (limited to 'config/webpack/plugins/create-manifest-webpack-plugin/index.js')
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/index.js | 8 |
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 = [ |
