nuxt2.x怎么干掉window._Nuxt这段scipt
2021-07-26 18:31:58
在nuxt.config.js中配置
hooks:{ 'vue-renderer:ssr:context'(context){ const routePath = JSON.stringify(context.nuxt.routePath) context.nuxt={serverRendered:true,routePath} } },
NUXT调试时怎么去掉[HMR] 提示:
每次启动都要提示一堆HMR,看到就脑壳痛,专治脑壳痛的代码来了: 在nuxt.config.js中配置
telemetry: false //关闭提示