mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
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:
@@ -312,7 +312,7 @@ async function getBundleScriptList(target) {
|
|||||||
|
|
||||||
let scripts = JS.scripts.base;
|
let scripts = JS.scripts.base;
|
||||||
|
|
||||||
if (target === 'client' && process.env.NODE_ENV !== 'development') {
|
if (target === 'client') {
|
||||||
scripts = scripts.concat(JS.scripts.rjs);
|
scripts = scripts.concat(JS.scripts.rjs);
|
||||||
} else if (target === 'acp') {
|
} else if (target === 'acp') {
|
||||||
scripts = scripts.concat(JS.scripts.admin);
|
scripts = scripts.concat(JS.scripts.admin);
|
||||||
|
|||||||
Reference in New Issue
Block a user