fix non debug mode
This commit is contained in:
parent
02feb524e6
commit
fec728562e
1 changed files with 2 additions and 2 deletions
4
app.js
4
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}",`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue