PhpStorm 中的 SCSS 自动前缀 [英] SCSS Autoprefixer in PhpStorm

查看:58
本文介绍了PhpStorm 中的 SCSS 自动前缀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 phpstorm 中配置 SASS/SCSS Autoprefixer,这里或谷歌上的任何地方都没有解决方案对我有用,感谢任何帮助...

我尝试了很多选项,包括制作自定义文件观察器和使用 postcss-cli autoprefixer,但无法正确使用.

解决方案

正如

您也可以尝试在代码中使用 sass-prefix-mixins>

I am trying to configure SASS/SCSS Autoprefixer in phpstorm and no solution here or anywhere on google is working for me, any help is appreciated...

I have tried many options including making a custom file watcher and using postcss-cli autoprefixer, but not able to get it right.

解决方案

As it's written in this comment, there is no built-in support for autoprefixer, and it can hardly be expected in near future. If you miss it, please vote for WEB-37.

You can install the autoprefixer (npm install postcss-cli autoprefixer -g) and set it up as a file watcher, for example

You can also try using sass-prefix-mixins in your code

这篇关于PhpStorm 中的 SCSS 自动前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆