feat(core): new worker workspace engine (#9257)
This commit is contained in:
@@ -99,6 +99,19 @@ export function createShellHTMLPlugin(
|
||||
});
|
||||
}
|
||||
|
||||
export function createBackgroundWorkerHTMLPlugin(
|
||||
flags: BuildFlags,
|
||||
BUILD_CONFIG: BUILD_CONFIG_TYPE
|
||||
) {
|
||||
const htmlPluginOptions = getHTMLPluginOptions(flags, BUILD_CONFIG);
|
||||
|
||||
return new HTMLPlugin({
|
||||
...htmlPluginOptions,
|
||||
chunks: ['backgroundWorker'],
|
||||
filename: `background-worker.html`,
|
||||
});
|
||||
}
|
||||
|
||||
export function createHTMLPlugins(
|
||||
flags: BuildFlags,
|
||||
BUILD_CONFIG: BUILD_CONFIG_TYPE
|
||||
|
||||
Reference in New Issue
Block a user