diff --git a/build.js b/build.js index 5a1ceb0a9..87f81494d 100755 --- a/build.js +++ b/build.js @@ -2396,7 +2396,7 @@ dependencyMap = dependencyBackup; // output debug build - if (!isMinify && (isCustom || isDebug || isTemplate)) { + if (!isMinify && (isCustom || isDebug || isTemplate || outputPath)) { if (isCustom) { debugSource = addCommandsToHeader(debugSource, options); }