compass: You must compile individual stylesheets from the project directory

前端 未结 6 2372
有刺的猬
有刺的猬 2020-12-29 05:36

A while ago I was using compass to generate stylesheets from sass for a project.

Recently I returned to that project. I went to my sass directory and did \"compass w

6条回答
  •  执笔经年
    2020-12-29 06:01

    Remove the "/" in front of your directory names.

    This error occurs when your source path is incorrect. In your case, your directories have an extra "/". Removing them should fix your problem.

    As others have said, creating a config.rb with compass init will fix it too.

    Note that Config.rb is not necessary when using Grunt or similar runners that run compass. That might be how your project was running before without the config.rb file. The runner starts compass with all the paths and options in Gruntfile.js. Having paths/options in both Gruntfile and config.rb might cause problems.

提交回复
热议问题