mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix(vite): unset build.watch
options for production build (#5958)
This commit is contained in:
parent
8b6bb92d9f
commit
0839e93333
@ -73,9 +73,6 @@ export async function buildServer (ctx: ViteBuildContext) {
|
||||
rollupWarn(warning)
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
exclude: ctx.nuxt.options.ignore
|
||||
}
|
||||
},
|
||||
server: {
|
||||
|
@ -63,6 +63,9 @@ export async function bundle (nuxt: Nuxt) {
|
||||
rollupOptions: {
|
||||
output: { sanitizeFileName: sanitizeFilePath },
|
||||
input: resolve(nuxt.options.appDir, 'entry')
|
||||
},
|
||||
watch: {
|
||||
exclude: nuxt.options.ignore
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
@ -101,6 +104,7 @@ export async function bundle (nuxt: Nuxt) {
|
||||
if (!nuxt.options.dev) {
|
||||
ctx.config.server.hmr = false
|
||||
ctx.config.server.watch = undefined
|
||||
ctx.config.build.watch = undefined
|
||||
}
|
||||
|
||||
await nuxt.callHook('vite:extend', ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user