[英]Issue with dev-tools style editing in Nuxt.js
I'm working on a Nuxt.js application, and I often need to check styles in my browser's dev-tools, but when I do make a change to the styles in the dev-tools all the styles reset in the browser?我正在开发 Nuxt.js 应用程序,我经常需要在浏览器的开发工具中检查样式,但是当我对开发工具中的样式进行更改时,浏览器中的所有样式都会重置吗? Has anyone one else had the same issue?
其他人有同样的问题吗? I can't seem to find anything anywhere else about this??
我似乎无法在其他任何地方找到有关此的任何信息?
on nuxt.config.js
file, disable the sourceMaps
for scss files with the loader property在
nuxt.config.js
文件上,使用 loader 属性禁用sourceMaps
文件的 sourceMaps
export default {
// ...
build: {
loaders: {
scss: { sourceMap: false },
},
},
// ...
}
see in ~> nuxtjs.org/api/configuration-build/#loaders见〜> nuxtjs.org/api/configuration-build/#loaders
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.