diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-29 17:53:30 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-29 17:53:30 +0530 |
| commit | 9a4ff431ae2d9788de80bad243fb055cd488e6ac (patch) | |
| tree | c7310d7314364cab66f747b132dbd2aa41e54bc3 /config/webpack/plugins/create-manifest-webpack-plugin | |
| parent | fa5e6fad9af6df2890bd0f18c47f8f4fb9a420fa (diff) | |
| parent | b200c1345392c055bfe48e1c06d6dfc2a0768565 (diff) | |
| download | banglar-bhumi-utils-9a4ff431ae2d9788de80bad243fb055cd488e6ac.tar.gz banglar-bhumi-utils-9a4ff431ae2d9788de80bad243fb055cd488e6ac.zip | |
Merge branch 'adding-firefox-support'
Diffstat (limited to 'config/webpack/plugins/create-manifest-webpack-plugin')
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/index.js | 6 |
1 files changed, 6 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 f2e28b2..e28c695 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -104,6 +104,12 @@ class CreateManifestPlugin { } } + // `CreateRulesPlugin` skips emitting `rules.json` when `src/rules/` + // holds no rule files, so drop the ruleset reference with it. + if (!("rules.json" in assets)) { + delete manifest.declarative_net_request; + } + const injectedSharedModules = this.sortedSharedModules .filter((sharedModule) => this.injectedSharedModulesImportedCount[sharedModule] > 0) .map((sharedModule) => `shared/${getFileName(sharedModule, "shared")}.js`); |
