feat: allow the passing of a bundle suffix (#10614)

This commit is contained in:
Jason Cassidy
2024-08-29 17:53:31 +01:00
committed by GitHub
parent ba3316e749
commit 7b4cb8419c

View File

@ -132,6 +132,10 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
.globalObject('global') .globalObject('global')
.set('clean', true); .set('clean', true);
if (env?.uniqueBundle) {
config.output.filename(`[name].${env.uniqueBundle}.js`);
}
config.watchOptions({ config.watchOptions({
ignored: [ ignored: [
`${getProjectFilePath(env.buildPath ?? 'platforms')}/**`, `${getProjectFilePath(env.buildPath ?? 'platforms')}/**`,