From fec728562e42c3d203d134a81d86874213c9fdf2 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Wed, 3 Jun 2020 22:44:05 -0400 Subject: [PATCH] fix non debug mode --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index bafb9159..b05f1eb0 100644 --- a/app.js +++ b/app.js @@ -613,12 +613,12 @@ function prepareScripts() { function concatCode(array) { let code = []; + let direct = array.filter(f => f.charAt(0) !== '@'); + let inject = array.filter(f => f.charAt(0) === '@').map(f => f.substring(1)); // in debug mode, the script should load dependent // scripts instead of serving a complete bundle if (debug) { - let direct = array.filter(f => f.charAt(0) !== '@'); - let inject = array.filter(f => f.charAt(0) === '@').map(f => f.substring(1)); let code = [ `(function() { let load = [ `]; direct.forEach(file => { code.push(`"/${file.replace(/\\/g,'/')}?${version}",`);