This commit is contained in:
sentsin
2017-08-21 08:50:25 +08:00
parent 06c11ba9cd
commit 7feaa4eca0
1899 changed files with 181363 additions and 22513 deletions

22
node_modules/gulp-uglify/lib/create-error.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
var PluginError = require('gulp-util/lib/PluginError');
var pluginName = 'gulp-uglify';
module.exports = function createError(file, err) {
if (typeof err === 'string') {
return new PluginError(pluginName, file.path + ': ' + err, {
fileName: file.path,
showStack: false
});
}
var msg = err.message || err.msg || 'unspecified error';
return new PluginError(pluginName, file.path + ': ' + msg, {
fileName: file.path,
lineNumber: err.line,
stack: err.stack,
showStack: false
});
};