PostCSS:关闭 webstorm 中 css 嵌套语法错误提示

开发 tailwindcss 项目由于启用了 postcss 插件 tailwindcss/nesting(postcss-nested、postcss-nesting),我们就可以在 css 中使用嵌套了,但是 编辑器会给出错误提示,因为目前的 css 规范还不支持嵌套,解决办法:
1.安装 PostCss 插件
2.进入路径 Preferences > Languages & Frameworks > Stylesheets > Dialects(方言),将项目方言修改为PostCSS
或者 使用 .pcss
版权声明:
作者:东明兄
链接:https://blog.crazyming.com/note/3049/
来源:CrazyMing
文章版权归作者所有,未经允许请勿转载。


共有 0 条评论