From ee2d0ddf8a19d11b14ad609dc135921cd41a1c15 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 13 Jun 2012 15:15:20 -0400 Subject: [PATCH] Ensure custom builds generate lodash.custom files. Former-commit-id: c89ee640688f6f598bb2d3834f714f0edc4ce7a4 --- build.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.js b/build.js index 0b3fa2c0b..fee4cb338 100755 --- a/build.js +++ b/build.js @@ -217,9 +217,6 @@ /** Flag used to specify a mobile build */ var isMobile = process.argv.indexOf('mobile') > -1; - /** Flag used to specify a custom build */ - var isCustom = filterType || isBackbone || isMobile; - /*--------------------------------------------------------------------------*/ /** @@ -618,7 +615,7 @@ source = source.replace(/(?:(?:\s*\/\/.*)*\s*lodash\._[^=]+=.+\n)+/g, '\n'); // begin the minification process - if (isCustom) { + if (filterType || isBackbone || isMobile) { fs.writeFileSync(path.join(__dirname, 'lodash.custom.js'), source); minify(source, 'lodash.custom.min', function(result) { fs.writeFileSync(path.join(__dirname, 'lodash.custom.min.js'), result);