mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-12-03 05:10:04 +01:00
Build webpack bundles and styles in parallel
This commit is contained in:
1 parent
ecfe558b1f
commit
a508a34b48
3 files changed
+31
-27
No files matched your search
+11
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user