我最近换了我的mac。我曾经使用grunt和grunt-contrib-compass没有问题,但自从我改变后,compass不再工作了。
我安装了我需要的所有工具(ruby、compass、sass、xcode、命令行工具、grunt等)。并保持相同的gruntfile.js和配置。当我运行grunt时,每个任务都是可执行的,甚至是compass,但是grunt-contrib-compass什么也不做,它显示了以下内容:
Running "compass:dev" (compass) task
//nothing
Running "csslint:dev" (csslint) task
>>1 file lint free.
// csslint, like the others plugins, works fine这个问题不存在于我的grunt配置中,因为在同一个文件夹中,grunt-contrib-compass在我的旧mac上可以正常工作。
我注意到在grunt的执行过程中xcodebuild不会运行。
你知道我的问题在哪里吗?
发布于 2014-11-22 18:45:45
你同时安装了Compass和SASS吗?
如果已安装Compass,则不应安装SASS:
// * for Compass, run `npm install --save-dev grunt-contrib-compass`
// This depends on the ruby compass gem, which can be installed with
// `gem install compass`
// You should not install SASS if you have installed Compass.https://stackoverflow.com/questions/25806610
复制相似问题