From 1f1eefd93bfe618f3d6d61a82bcb90d83942029c Mon Sep 17 00:00:00 2001 From: Jason Cassidy <47318351+jcassidyav@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:00:52 +0100 Subject: [PATCH] feat: allow the passing of a bundle suffix --- packages/webpack5/src/configuration/base.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/webpack5/src/configuration/base.ts b/packages/webpack5/src/configuration/base.ts index db3cb003a9..1345be3473 100644 --- a/packages/webpack5/src/configuration/base.ts +++ b/packages/webpack5/src/configuration/base.ts @@ -132,6 +132,10 @@ export default function (config: Config, env: IWebpackEnv = _env): Config { .globalObject('global') .set('clean', true); + if (env?.uniqueBundle) { + config.output.filename(`[name].${env.uniqueBundle}.js`); + } + config.watchOptions({ ignored: [ `${getProjectFilePath(env.buildPath ?? 'platforms')}/**`,