build(gulp): append new line at end of JS files
This commit is contained in:
@@ -24,6 +24,7 @@ function minifyJs() {
|
||||
return src(`${ JS_DEST }/*.js`)
|
||||
.pipe(insert.prepend(fs.readFileSync(`${ JS_SRC }/copyright`, 'utf8')))
|
||||
.pipe(uglify({output: {comments: /^!|@preserve|@license|@cc_on/i}}))
|
||||
.pipe(insert.append('\n'))
|
||||
.pipe(dest(JS_DEST));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user