Sass 和指南针 [英] Sass and Compass

查看:81
本文介绍了Sass 和指南针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天开始使用指南针.我已经使用 sass 创建了一个项目(这至少是我在 cmd 中输入的内容).

I started working with compass today. I have created a project using sass (that's atleast what I entered in the cmd).

它使我的项目变得很好.所有文件都很好等等,将它们设为 .sass 扩展名.

It made my project, all good. All files are good etc, made them .sass extensions.

文件结构:http://prntscr.com/9m2i7s

但是现在(问题来了),当我尝试输入一些 sass 代码时,它给了我一个错误:http://prntscr.com/9m2isq.

But now (here comes the problem), when I try to enter in some sass code, it's giving me an error: http://prntscr.com/9m2isq.

我已经发现了问题所在.该项目认为我正在使用 scss(其中语法没有;"和{}".

I have already found out what the problem is. The project thinks I'm using scss (where the syntax is without the ';'s and '{ }'s.

我不介意使用 scss 而不是 sass,但我觉得它很奇怪.因为它为我制作了 sass 文件等等.现在它想让我使用 scss.

I don't mind working with scss instead of sass, but I find it weird. Because it made sass files for me etc.. and now it's wanting me to use scss.

有谁知道我如何才能使用 sass 而不是 scss?

Does anyone know how I would maybe be able to use sass instead of scss?

亲切的问候!

推荐答案

对于 SASS,您的文件扩展名应该是 .scss,而不是 .sass.您的预编译器可能会窒息,因为它不知道您提供的是什么格式.

Your file extensions should be .scss for SASS, not .sass. Chances are your precompiler is choking because it don't know what format you are feeding it.

这篇关于Sass 和指南针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆