Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
找不到有关使用 Compass 的 JavaScript 的信息,在配置中我找到了一个“javascript_dir”选项,但不知道如何使用它。有人可以解释一下这个选项是什么,以及如何将它与 .scss 文件一起使用吗?
上面的评论是正确的,Compass 和 Sass 通常不与 JS 交互。有人可能在 compass 插件中包含 JS,在这种情况下,Compass 需要在安装插件时知道这些文件应该放在哪里。这是此时“javascript_dir”的唯一用途。如果你没有用 JS 安装任何插件,你可以忽略它。