Unable to compile an existing project because Compass can't find it

前端 未结 1 1866
执笔经年
执笔经年 2020-12-21 16:14

I just installed the foundation in my application base directory by executing the following command:

compass create myprojectname -r zurb-foundation --using          


        
相关标签:
1条回答
  • 2020-12-21 16:50

    When you use compass create [directory_name], Compass creates your project within ./[directory_name] relative from your current directory (running compass create without the directory name would have created the project in the current directory). In order to compile or watch a Compass project, you need to do either of the following things:

    • Tell Compass where your project is via compass compile [path_to_config.rb]
    • Change to the directory where config.rb is found and run compass compile

    Alternately, you could move your config.rb to where you want to run your command. Just make sure you edit the paths to directories configured within said file.

    0 讨论(0)
提交回复
热议问题