Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsjng committed Apr 4, 2019
1 parent 94086ff commit cfd5be7
Show file tree
Hide file tree
Showing 4 changed files with 326 additions and 1,361 deletions.
2 changes: 1 addition & 1 deletion dist/pagemap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 1 addition & 23 deletions ghu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,8 @@ ghu.task('clean', () => {
});

ghu.task('build:script', runtime => {
const webpackConfig = {
mode: 'none',
output: {
library: NAME,
libraryTarget: 'umd',
umdNamedDefine: true,
globalObject: '(typeof self !== \'undefined\' ? self : this)'
},
module: {
rules: [
{
include: [SRC],
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['@babel/preset-env']
}
}
]
}
};

return read(`${SRC}/${NAME}.js`)
.then(webpack(webpackConfig, {showStats: false}))
.then(webpack(webpack.cfg_umd(NAME, [SRC]), {showStats: false}))
.then(uglify())
.then(wrap(runtime.commentJs))
.then(write(`${DIST}/${NAME}.min.js`, {overwrite: true}))
Expand Down
Loading

0 comments on commit cfd5be7

Please sign in to comment.