mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
build.js: s/Lodash/Lo-Dash.
Former-commit-id: 831e1ac205c328c9d0353dc2a036d4226b9170a5
This commit is contained in:
6
build.js
6
build.js
@@ -19,7 +19,7 @@
|
||||
preprocess = require(path.join(buildPath, 'pre-compile')),
|
||||
postprocess = require(path.join(buildPath, 'post-compile')),
|
||||
|
||||
/* The pre-processed Lodash source. */
|
||||
/* The pre-processed Lo-Dash source. */
|
||||
source = preprocess(fs.readFileSync(path.join(__dirname, 'lodash.js'), 'utf8'));
|
||||
|
||||
/* Create the destination directory if it doesn't exist. */
|
||||
@@ -27,7 +27,7 @@
|
||||
fs.mkdirSync(distPath);
|
||||
}
|
||||
|
||||
/* Compress and `gzip` Lodash using the Closure Compiler. */
|
||||
/* Compress and `gzip` Lo-Dash using the Closure Compiler. */
|
||||
compile(source, function (exception, results) {
|
||||
if (exception) {
|
||||
throw exception;
|
||||
@@ -46,7 +46,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
/* Compress and `gzip` Lodash using UglifyJS. */
|
||||
/* Compress and `gzip` Lo-Dash using UglifyJS. */
|
||||
uglify(source, function (results) {
|
||||
var source = postprocess(results);
|
||||
fs.writeFileSync(path.join(distPath, 'lodash.uglify.js'), source);
|
||||
|
||||
Reference in New Issue
Block a user