diff --git a/template/config/environments/development.js b/template/config/environments/development.js index 4ee57598..89e2951f 100644 --- a/template/config/environments/development.js +++ b/template/config/environments/development.js @@ -3,6 +3,7 @@ module.exports = { showStack: true, + openInBrowser: true, koaManifestRev: { manifest: '', prepend: '/' diff --git a/template/gulpfile.js b/template/gulpfile.js index 88556915..cda44888 100644 --- a/template/gulpfile.js +++ b/template/gulpfile.js @@ -61,7 +61,7 @@ gulp.task('build', done => { // TODO: add remark-cli with -qfo options // TODO: ensure depcheck, xo, pug-lint, remark lint called in lint task runSequence('lint', 'css', ['img', 'js', 'static'], async () => { - if (!PROD) { + if (!PROD && config.openInBrowser) { await opn(config.urls.web, { wait: false }); } done();