Add custom build header comment to builds when only using --output.

Former-commit-id: adef2798bd590c0dc0c14b253f0d450ec5bb5394
This commit is contained in:
John-David Dalton
2013-02-08 16:57:46 -08:00
parent 282110807c
commit 65e1da34fa
3 changed files with 9 additions and 5 deletions

View File

@@ -2383,9 +2383,11 @@
var outputUsed = false;
// flag to specify creating a custom build
var isCustom = isLegacy || isMapped || isMobile || isModern || isStrict || isUnderscore ||
var isCustom = (
isLegacy || isMapped || isModern || isStrict || isUnderscore || outputPath ||
/(?:category|exclude|exports|iife|include|minus|plus)=/.test(options) ||
!_.isEqual(exportsOptions, exportsAll);
!_.isEqual(exportsOptions, exportsAll)
);
// used as the basename of the output path
var basename = outputPath
@@ -2396,7 +2398,7 @@
dependencyMap = dependencyBackup;
// output debug build
if (!isMinify && (isCustom || isDebug || isTemplate || outputPath)) {
if (!isMinify && (isCustom || isDebug || isTemplate)) {
if (isCustom) {
debugSource = addCommandsToHeader(debugSource, options);
}