mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Remove duplicate license headers from compiled js files
This commit is contained in:
parent
7dd32257d1
commit
194b396788
@ -27,6 +27,7 @@ var fs = require('fs'),
|
||||
concatPo = require('gulp-concat-po'),
|
||||
rename = require('gulp-rename'),
|
||||
eslint = require('gulp-eslint'),
|
||||
removeDuplicateHeaders = require('mibew-gulp-greh'),
|
||||
mkdirp = require('mkdirp');
|
||||
|
||||
// Set global configuration
|
||||
@ -237,6 +238,7 @@ gulp.task('js', function() {
|
||||
gulp.src(config.jsPath + '/source/**/*.js')
|
||||
)
|
||||
.pipe(uglify({preserveComments: 'some'}))
|
||||
.pipe(removeDuplicateHeaders())
|
||||
.pipe(gulp.dest(config.jsPath + '/compiled'));
|
||||
});
|
||||
|
||||
|
@ -26,7 +26,8 @@
|
||||
"event-stream": "^3.3.1",
|
||||
"eslint": "^2.11.0",
|
||||
"gulp-eslint": "^2.0.0",
|
||||
"mkdirp": "^0.5.1"
|
||||
"mkdirp": "^0.5.1",
|
||||
"mibew-gulp-greh": "^0.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.12"
|
||||
|
Loading…
Reference in New Issue
Block a user