mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add custom build header comment to builds when only using --output.
Former-commit-id: adef2798bd590c0dc0c14b253f0d450ec5bb5394
This commit is contained in:
8
build.js
8
build.js
@@ -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);
|
||||
}
|
||||
|
||||
3
dist/lodash.compat.js
vendored
3
dist/lodash.compat.js
vendored
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @license
|
||||
* Lo-Dash 1.0.0-rc.3 <http://lodash.com/>
|
||||
* Lo-Dash 1.0.0-rc.3 (Custom Build) <http://lodash.com/>
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.4.4 <http://underscorejs.org/>
|
||||
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
|
||||
3
dist/lodash.compat.min.js
vendored
3
dist/lodash.compat.min.js
vendored
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @license
|
||||
* Lo-Dash 1.0.0-rc.3 lodash.com/license
|
||||
* Lo-Dash 1.0.0-rc.3 (Custom Build) lodash.com/license
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
* Underscore.js 1.4.4 underscorejs.org/LICENSE
|
||||
*/
|
||||
;(function(n,t){function r(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof r?(this.__wrapped__=n,void 0):new r(n)}function e(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||it);if(u){var o={};for(r=t-1;++r<e;){var i=n[r]+"";(Ot.call(o,i)?o[i]:o[i]=[]).push(n[r])}}return function(r){if(u){var e=r+"";return Ot.call(o,e)&&-1<z(o[e],r)}return-1<z(n,r,t)}}function u(n){return n.charCodeAt(0)}function o(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
|
||||
|
||||
Reference in New Issue
Block a user