fix(nuxt): tree-shake devtools from production bundle (#6538)

This commit is contained in:
pooya parsa 2022-08-12 00:33:21 +02:00 committed by GitHub
parent 21c5a7579e
commit b0bf25cf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,8 @@ export async function initNitro (nuxt: Nuxt) {
},
replace: {
'process.env.NUXT_NO_SSR': nuxt.options.ssr === false,
'process.dev': nuxt.options.dev
'process.dev': nuxt.options.dev,
__VUE_PROD_DEVTOOLS__: false
},
rollupConfig: {
plugins: []