}));
}
+// Allow layout.pug to select the right vue file:
+app.locals.development = app.get('env') === 'development';
+
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');
block content
script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js")
- script(src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js")
- //script(src="https://cdn.jsdelivr.net/npm/vue") //prod
+ if development
+ script(src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js")
+ else
+ script(src="https://cdn.jsdelivr.net/npm/vue")
block javascripts