fix(vite): make vite server strict by default (#321)

This commit is contained in:
Anthony Fu 2021-07-14 22:37:07 +08:00 committed by GitHub
parent a3a7df7835
commit ea0fdc2aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,18 @@ export async function bundle (nuxt: Nuxt) {
build: {
emptyOutDir: false
},
server: {
fs: {
strict: true,
allow: [
nuxt.options.buildDir,
nuxt.options.appDir,
nuxt.options.srcDir,
nuxt.options.rootDir,
...nuxt.options.modulesDir
]
}
},
plugins: []
} as ViteOptions
)