开发者

Force Compass to use .sass syntax?

Is there a way to force 开发者_高级运维Compass to use the Sass syntax instead of SCSS?


For new projects, run:

compass create path/to/project --syntax sass

to generate .sass files using Sass syntax inside the sass folder. The --syntax option and others are listed when you run compass --help.

For existing projects, add the following to your Compass config.rb:

preferred_syntax = :sass

That's covered in the Compass configuration reference. And you'll want to run your existing SCSS files through sass-convert to generate new ones which use Sass syntax.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜