mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Add test/test-build.js.
Former-commit-id: b0c28b814dec71095a927469cbbda766fd9fc701
This commit is contained in:
@@ -361,10 +361,10 @@
|
||||
|
||||
var filePath = options[options.length - 1],
|
||||
dirPath = path.dirname(filePath),
|
||||
workingName = path.basename(filePath, '.js') + '.min',
|
||||
outputPath = path.join(dirPath, workingName + '.js'),
|
||||
isSilent = options.indexOf('-s') > -1 || options.indexOf('--silent') > -1,
|
||||
source = fs.readFileSync(filePath, 'utf8'),
|
||||
workingName = path.basename(filePath, '.js') + '.min';
|
||||
source = fs.readFileSync(filePath, 'utf8');
|
||||
|
||||
minify(source, {
|
||||
'silent': isSilent,
|
||||
|
||||
Reference in New Issue
Block a user