Skip to content

Commit

Permalink
'Open in browser' is now optional (fix #281)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopunk committed Sep 8, 2017
1 parent d22455d commit daba9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions template/config/environments/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

module.exports = {
showStack: true,
openInBrowser: true,
koaManifestRev: {
manifest: '',
prepend: '/'
Expand Down
2 changes: 1 addition & 1 deletion template/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit daba9ca

Please sign in to comment.