更改时,用指南针编译scss文件

时间:2012-10-19 17:39:24

标签: macos plist compass-sass sass

我正在尝试在scss文件发生变化时立即编译它。

我安装了罗盘:

gem install compass

我创建了一个plist文件~/Library/LaunchAgents/compile_scss.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>Compass</string>
    <key>ProgramArguments</key>
    <array>
        <string>compass</string>
        <string>compile</string>
        <string>/Users/name/localhost/compass/lala.scss</string>
    </array>
    <key>WatchPaths</key>
    <array>
        <string>/Users/name/localhost/compass/lala.scss</string>
    </array>
</dict>
</plist>

我装了它:

launchctl load ~/Library/LaunchAgents/compile_scss.plist

然后,我更改了lala.scss文件。

问题:未创建lala.css文件...

知道为什么吗?

1 个答案:

答案 0 :(得分:1)

运行此命令:compass watch /directory/with/your/site以开始监控更改。