8000 Ensure custom builds generate lodash.custom files. · lodash/lodash@ee2d0dd · GitHub
[go: up one dir, main page]

Skip to content

Commit ee2d0dd

Browse files
committed
Ensure custom builds generate lodash.custom files.
Former-commit-id: c89ee640688f6f598bb2d3834f714f0edc4ce7a4
1 parent aef130b commit ee2d0dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@
217217
/** Flag used to specify a mobile build */
218218
var isMobile = process.argv.indexOf('mobile') > -1;
219219

220-
/** Flag used to specify a custom build */
221-
var isCustom = filterType || isBackbone || isMobile;
222-
223220
/*--------------------------------------------------------------------------*/
224221

225222
/**
@@ -618,7 +615,7 @@
618615
source = source.replace(/(?:(?:\s*\/\/.*)*\s*lodash\._[^=]+=.+\n)+/g, '\n');
619616

620617
// begin the minification process
621-
if (isCustom) {
618+
if (filterType || isBackbone || isMobile) {
622619
fs.writeFileSync(path.join(__dirname, 'lodash.custom.js'), source);
623620
minify(source, 'lodash.custom.min', function(result) {
624621
fs.writeFileSync(path.join(__dirname, 'lodash.custom.min.js'), result);

0 commit comments

Comments
 (0)
0