Update preview code.

This commit is contained in:
Lars Jung 2016-07-22 19:43:44 +02:00
parent 8a4ccd098c
commit 20e080751d
11 changed files with 166 additions and 194 deletions

2
ghu.js
View file

@ -68,7 +68,7 @@ ghu.task('build:scripts', runtime => {
.then(webpack(webpackCfg([SRC]), {showStats: false}))
.then(wrap('\n\n// @include "pre.js"\n\n'))
.then(includeit())
.then(ife(() => runtime.args.production, uglify()))
.then(ife(() => runtime.args.production, uglify({compressor: {warnings: false}})))
.then(wrap(runtime.commentJs))
.then(write(mapper, {overwrite: true}));
});