mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
parent
9e2c4b9761
commit
2a76ff4d27
@ -369,18 +369,18 @@ export default class Builder extends Tapable {
|
|||||||
debug('Adding webpack middleware...')
|
debug('Adding webpack middleware...')
|
||||||
|
|
||||||
// Create webpack dev middleware
|
// Create webpack dev middleware
|
||||||
this.webpackDevMiddleware = pify(webpackDevMiddleware(this.compiler.client, {
|
this.webpackDevMiddleware = pify(webpackDevMiddleware(this.compiler.client, Object.assign({
|
||||||
publicPath: this.options.build.publicPath,
|
publicPath: this.options.build.publicPath,
|
||||||
stats: this.webpackStats,
|
stats: this.webpackStats,
|
||||||
noInfo: true,
|
noInfo: true,
|
||||||
quiet: true,
|
quiet: true,
|
||||||
watchOptions: this.options.watchers.webpack
|
watchOptions: this.options.watchers.webpack
|
||||||
}))
|
}, this.options.build.devMiddleware)))
|
||||||
|
|
||||||
this.webpackHotMiddleware = pify(webpackHotMiddleware(this.compiler.client, {
|
this.webpackHotMiddleware = pify(webpackHotMiddleware(this.compiler.client, Object.assign({
|
||||||
log: false,
|
log: false,
|
||||||
heartbeat: 2500
|
heartbeat: 2500
|
||||||
}))
|
}, this.options.build.hotMiddleware)))
|
||||||
|
|
||||||
// Inject to renderer instance
|
// Inject to renderer instance
|
||||||
if (this.nuxt.renderer) {
|
if (this.nuxt.renderer) {
|
||||||
|
@ -69,7 +69,9 @@ export const defaultOptions = {
|
|||||||
babel: {},
|
babel: {},
|
||||||
postcss: [],
|
postcss: [],
|
||||||
templates: [],
|
templates: [],
|
||||||
watch: []
|
watch: [],
|
||||||
|
devMiddleware: {},
|
||||||
|
hotMiddleware: {}
|
||||||
},
|
},
|
||||||
generate: {
|
generate: {
|
||||||
dir: 'dist',
|
dir: 'dist',
|
||||||
|
Loading…
Reference in New Issue
Block a user