mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
No need to call build() on development
This commit is contained in:
parent
1ae3062283
commit
2b80bc3e5c
@ -46,12 +46,6 @@ var server = nuxt.server = new nuxt.Server(nuxt).listen(port, host)
|
|||||||
|
|
||||||
listenOnConfigChanges(nuxt, server)
|
listenOnConfigChanges(nuxt, server)
|
||||||
|
|
||||||
nuxt.build()
|
|
||||||
.catch((err) => {
|
|
||||||
console.error(err) // eslint-disable-line no-console
|
|
||||||
process.exit(1)
|
|
||||||
})
|
|
||||||
|
|
||||||
function listenOnConfigChanges(nuxt, server) {
|
function listenOnConfigChanges(nuxt, server) {
|
||||||
// Listen on nuxt.config.js changes
|
// Listen on nuxt.config.js changes
|
||||||
var build = _.debounce(() => {
|
var build = _.debounce(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user