[英]How to write custom output path in PhpStorm file watcher
我的scss文件位于project/repo/style/home/index.scss
,想要将已编译的CSS文件保存在project/repo/dist/style/home/index.css
但找不到任何好的解决方案。
怎么做?
我发现答案:安装红宝石和Sass后需要重新启动系统。
Webstorm配置有以下参数:
Program: /usr/bin/sass
Arguments: --no-cache --style compressed --update --sourcemap=none $FileName$:$ProjectFileDir$/repo/Style/$FileDirPathFromParent(Style)$/$FileNameWithoutExtension$.min.css
Working directory: $FileDir$
Output path:$ProjectFileDir$/repo/Style/$FileDirPathFromParent(Style)$/$FileNameWithoutExtension$.css
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.