fix: update js concatenation logic to bundle scripts.rjs into minfile regardless of build environment

The slowdown is fairly insignificant (< .1s), and the only change is the minified file is identical across environments, which is better from a debugging standpoint
This commit is contained in:
Julian Lam
2021-01-27 09:39:19 -05:00
parent 1d77572117
commit 8ff07bc196

View File

@@ -312,7 +312,7 @@ async function getBundleScriptList(target) {
let scripts = JS.scripts.base;
if (target === 'client' && process.env.NODE_ENV !== 'development') {
if (target === 'client') {
scripts = scripts.concat(JS.scripts.rjs);
} else if (target === 'acp') {
scripts = scripts.concat(JS.scripts.admin);