mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
lodash: Fix typo in build.js. [jddalton]
Former-commit-id: 1dce55619a345bec6c5ebda1490a1015bfb30210
This commit is contained in:
6
build.js
6
build.js
@@ -61,7 +61,7 @@
|
|||||||
process = spawn(name, parameters);
|
process = spawn(name, parameters);
|
||||||
|
|
||||||
// juggle arguments
|
// juggle arguments
|
||||||
if (typeof encoding == 'string' && callback != null) {
|
if (typeof encoding == 'string') {
|
||||||
// explicitly set the encoding of the output stream if one is specified
|
// explicitly set the encoding of the output stream if one is specified
|
||||||
process.stdout.setEncoding(encoding);
|
process.stdout.setEncoding(encoding);
|
||||||
} else {
|
} else {
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
throw exception;
|
throw exception;
|
||||||
}
|
}
|
||||||
// store the post-processed Uglified result and gzip it
|
// store the post-processed Uglified result and gzip it
|
||||||
accumulator.uglified.source = postprocess(result);
|
accumulator.uglified.source = result = postprocess(result);
|
||||||
invoke('gzip', gzipOptions, result, 'binary', onUglifyGzip);
|
invoke('gzip', gzipOptions, result, 'binary', onUglifyGzip);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
fs.writeFileSync(path.join(distPath, 'lodash.uglify.js'), uglified.source);
|
fs.writeFileSync(path.join(distPath, 'lodash.uglify.js'), uglified.source);
|
||||||
fs.writeFileSync(path.join(distPath, 'lodash.uglify.js.gz'), uglified.gzip, 'binary');
|
fs.writeFileSync(path.join(distPath, 'lodash.uglify.js.gz'), uglified.gzip, 'binary');
|
||||||
|
|
||||||
// select the smallest gzipped file and use its minified form as the
|
// select the smallest gzipped file and use its minified counterpart as the
|
||||||
// official minified release (ties go to Closure Compiler)
|
// official minified release (ties go to Closure Compiler)
|
||||||
fs.writeFileSync(path.join(__dirname, 'lodash.min.js'),
|
fs.writeFileSync(path.join(__dirname, 'lodash.min.js'),
|
||||||
uglified.gzip.length < compiled.gzip.length
|
uglified.gzip.length < compiled.gzip.length
|
||||||
|
|||||||
Reference in New Issue
Block a user