No need to call build() on development

This commit is contained in:
Sebastien Chopin 2017-06-02 17:59:20 +02:00
parent 1ae3062283
commit 2b80bc3e5c

View File

@ -46,12 +46,6 @@ var server = nuxt.server = new nuxt.Server(nuxt).listen(port, host)
listenOnConfigChanges(nuxt, server)
nuxt.build()
.catch((err) => {
console.error(err) // eslint-disable-line no-console
process.exit(1)
})
function listenOnConfigChanges(nuxt, server) {
// Listen on nuxt.config.js changes
var build = _.debounce(() => {