mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-08 00:27:58 +00:00
Rename copyright file for JS
This commit is contained in:
parent
1c0cd6b6b0
commit
1ff38722a2
@ -22,7 +22,7 @@ function concatJs(files, output) {
|
|||||||
|
|
||||||
function minifyJs() {
|
function minifyJs() {
|
||||||
return src(`${ jsDest }/*.js`)
|
return src(`${ jsDest }/*.js`)
|
||||||
.pipe(insert.prepend(fs.readFileSync(`${ JS_ROOT }/.copyright`, 'utf8')))
|
.pipe(insert.prepend(fs.readFileSync(`${ JS_ROOT }/_copyright`, 'utf8')))
|
||||||
.pipe(uglify({output: {comments: /^!|@preserve|@license|@cc_on/i}}))
|
.pipe(uglify({output: {comments: /^!|@preserve|@license|@cc_on/i}}))
|
||||||
.pipe(dest(jsDest));
|
.pipe(dest(jsDest));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user