Skip to content

Commit

Permalink
Fix reference error in gulpfile
Browse files Browse the repository at this point in the history
Fixes #750.
  • Loading branch information
silvenon committed Jan 16, 2019
1 parent 25ef626 commit 6715501
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function measureSize() {
.pipe($.size({title: 'build', gzip: true}));
}

exports.build = series(
const build = series(
parallel(
lint,
series(parallel(styles, scripts), html),
Expand Down Expand Up @@ -178,12 +178,15 @@ function startDistServer() {
});
}

let serve;
if (isDev) {
exports.serve = series(clean, parallel(styles, scripts, fonts), startAppServer);
serve = series(clean, parallel(styles, scripts, fonts), startAppServer);
} else if (isTest) {
exports.serve = series(scripts, startTestServer);
serve = series(scripts, startTestServer);
} else if (isProd) {
exports.serve = series(build, startDistServer);
serve = series(build, startDistServer);
}

exports.serve = serve;
exports.build = build;
exports.default = build;

0 comments on commit 6715501

Please sign in to comment.