Meteor.js &SCSS/指南针 [英] Meteor.js & SCSS/Compass

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

问题描述

任何使用meteor 和SCSS 进行开发的人.你如何开始,我找不到陨石的包,可以将 .scss 文件编译到特定文件夹?

Anyone doing development with meteor and SCSS. How do you get started, there are no packages for meteorite that i could find that compile .scss files into a specific folder?

推荐答案

您是否尝试过在开发过程中仅在本地将 sass/scss 编译为 css?如果您的 config.rb 与 sass 文件夹和编译的 css 文件夹一起位于客户端文件夹中,则 Meteor 不应该抱怨.它应该按照规范自动读取 css.在 config.rb 所在的客户端文件夹中运行 $ compass watch 是一种自动进行 css 编译的简单方法.Telescope 是一个很棒的示例 Meteor 应用,它以这种方式使用 sass.

Have you tried just compiling the sass/scss into css locally during development? Meteor shouldn't complain if you have your config.rb inside of the client folder along with a sass folder and compiled css folder. It should just automatically read the css per norm. Running $ compass watch inside of this client folder where the config.rb resides is an easy way to automate this css compilation. Telescope is a great sample Meteor app that uses sass in this fashion.

--亚历克斯

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

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