Build webpack bundles and styles in parallel

This commit is contained in:
Terncode committed 2026-11-21 16:37:13 +01:00
1 parent ecfe558b1f
commit a508a34b48
3 files changed
+31 -27

No files matched your search

+11 -1
View File
@@ -36,7 +36,17 @@ const scripts = [
const max = Math.max(...([...scripts].map(e => e[0].length)));
function getScripts(args) {
const { analyze, main, admin, tools, beta } = args;
const { analyze, main, admin, tools, beta, bundle } = args;
if (bundle) {
const found = scripts.filter(s => s[0] === bundle);
if (!found.length) {
throw new Error(`Unknown bundle: ${bundle}`);
}
return found;
}
if (tools || beta) {
return [...scripts];
}