开发者

Force Compass to use .sass syntax?

开发者 https://www.devze.com 2023-03-25 14:18 出处:网络
Is there a way to force 开发者_高级运维Compass to use the Sass syntax instead of SCSS?For new projects, run:

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

精彩评论

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