8000 feat: allow the passing of a bundle suffix (#10614) · NativeScript/NativeScript@7b4cb84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b4cb84

Browse files
authored
feat: allow the passing of a bundle suffix (#10614)
1 parent ba3316e commit 7b4cb84

File tree

1 file changed

+4
-0
lines changed
  • packages/webpack5/src/configuration

1 file changed

+4
-0
lines changed

packages/webpack5/src/configuration/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
132132
.globalObject('global')
133133
.set('clean', true);
134134

135+
if (env?.uniqueBundle) {
136+
config.output.filename(`[name].${env.uniqueBundle}.js`);
137+
}
138+
135139
config.watchOptions({
136140
ignored: [
137141
`${getProjectFilePath(env.buildPath ?? 'platforms')}/**`,

0 commit comments

Comments
 (0)
0