Setting up Compass in PhpStorm
There's a few posts about this on here, but I couldn't find any for the latest PHPStorm version that claims to support Compass.
So from my project root I have:
/public/assets/css
/public/assets/scss
/public/assets/config.rb
which contains:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"
My compass executable is set to: /usr/bin/compass and the config path is set to: path-to-project/public/assets/config.rb
I've also set up PhpStorm to compile the scss files into the /public/assets/css folder
In one scss file I have
@import "compass";
and I get this error:
/usr/bin/compass compile /private/var/virt/budget-forklifts/public/assets compile /private/var/virt/budget-forklifts/public/assets/scss
You must compile individual stylesheets from the project directory.
Any ideas what I'm doing wrong?
Figured this out if others have this same issue:
You just have to disable your scss file watcher when you enable the compass scss one. I guess they both run at once and get confused.
链接地址: http://www.djcxy.com/p/91674.html上一篇: 问题与指南针/萨斯config.rb
下一篇: 在PhpStorm中设置指南针