This commit is contained in:
syuilo 2017-12-11 12:20:36 +09:00
parent ad613ec519
commit 9852c57b8f
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ fontawesome.library.add(solid);
fontawesome.library.add(brands);
import version from './src/version';
import config from './src/conf';
const uglify = uglifyComposer(uglifyes, console);
@ -142,6 +143,7 @@ gulp.task('webpack', done => {
gulp.task('build:client:script', () =>
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
.pipe(replace('VERSION', JSON.stringify(version)))
.pipe(replace('API', JSON.stringify(config.api_url)))
.pipe(isProduction ? uglify({
toplevel: true
} as any) : gutil.noop())