diff --git a/src/build/buildApp.js b/src/build/buildApp.js index b488567..25bfa84 100644 --- a/src/build/buildApp.js +++ b/src/build/buildApp.js @@ -37,6 +37,11 @@ function buildApp(src, dest, options, callback) { } function maybeCopyScripts(srcs, dest) { + if (!srcs) { + return new Promise(resolve => { + resolve(); + }); + } const promises = srcs.map(src => { return new Promise((resolve, reject) => { if (!fs.existsSync(src)) {