问题描述
我正在尝试从Balloons(http://balloons.io)开始构建一个应用程序,该应用程序使用Backbone.js并通过Express来设置UI.我从未使用过这些框架,而在进行更改方面却遇到了困难.
I'm trying to build an application starting from Balloons (http://balloons.io), which uses Backbone.js and express to setup the UI. I've never used these frameworks, and I'm having a hard time actually making changes.
据我了解,.styl文件被编译为CSS文件.我该如何进行编译?
As I understand it, .styl files are compiled into CSS files. How do I do this compilation?
推荐答案
对于生产系统,您可以使用手写可执行文件,可在部署之前将 .styl
转换为 .css
.就像做一样简单:
For production systems you'd use a stylus executable to convert .styl
to .css
before deployment. It's as easy as doing:
stylus css --out stylesheet_dir
.styl 文件所在的文件夹中.
in the folder where your .styl
files reside.
对于开发,您可以使用 stylus中间件即时转换文件.
For development you can use stylus middleware to convert files on the fly.
这篇关于Node.js Express-如何将Stylus .styl文件编译为CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!