Fix bug
This commit is contained in:
parent
ad613ec519
commit
9852c57b8f
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ fontawesome.library.add(solid);
|
||||||
fontawesome.library.add(brands);
|
fontawesome.library.add(brands);
|
||||||
|
|
||||||
import version from './src/version';
|
import version from './src/version';
|
||||||
|
import config from './src/conf';
|
||||||
|
|
||||||
const uglify = uglifyComposer(uglifyes, console);
|
const uglify = uglifyComposer(uglifyes, console);
|
||||||
|
|
||||||
|
@ -142,6 +143,7 @@ gulp.task('webpack', done => {
|
||||||
gulp.task('build:client:script', () =>
|
gulp.task('build:client:script', () =>
|
||||||
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
|
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
|
||||||
.pipe(replace('VERSION', JSON.stringify(version)))
|
.pipe(replace('VERSION', JSON.stringify(version)))
|
||||||
|
.pipe(replace('API', JSON.stringify(config.api_url)))
|
||||||
.pipe(isProduction ? uglify({
|
.pipe(isProduction ? uglify({
|
||||||
toplevel: true
|
toplevel: true
|
||||||
} as any) : gutil.noop())
|
} as any) : gutil.noop())
|
||||||
|
|
Loading…
Reference in a new issue