1
0
mirror of https://github.com/lrsjng/pagemap.git synced 2025-08-08 14:06:31 +02:00
This commit is contained in:
Lars Jung
2019-04-27 21:20:11 +02:00
parent cfd5be77a9
commit a05a11d795
14 changed files with 1198 additions and 472 deletions

5
ghu.js
View File

@@ -24,7 +24,10 @@ ghu.task('clean', () => {
ghu.task('build:script', runtime => {
return read(`${SRC}/${NAME}.js`)
.then(webpack(webpack.cfg_umd(NAME, [SRC]), {showStats: false}))
.then(webpack(webpack.cfg_umd(NAME, [SRC])))
.then(wrap(runtime.commentJs))
.then(write(`${DIST}/${NAME}.js`, {overwrite: true}))
.then(write(`${BUILD}/${NAME}-${runtime.pkg.version}.js`, {overwrite: true}))
.then(uglify())
.then(wrap(runtime.commentJs))
.then(write(`${DIST}/${NAME}.min.js`, {overwrite: true}))