Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.
- takes all
.styl
files - excludes files with prefix
.import
(.import.styl
) - files are sorted according to template
- merge files
- compile into css
client/styles/vars/
client/styles/mixins/
client/styles/top/
client/styles/middle/
client/styles/bottom/
client/lib/
*
If you want to @import
a file, give it the extension .import.styl
to prevent Meteor from processing it independently.
This packages supports only absolute @import
from root meteor application directory.
For configure the package, create the file /config/stylus.json
.
Default options:
{
"url": {
"paths": ["./public/"],
"limit": 30000
},
"autoprefixer": {
"browser": ["last 2 versions",
"Explorer >= 10",
"Android >= 4.1",
"Safari >= 7",
"iOS >= 7"]
},
"svg": {
"svgo": true,
"ei": false
}
}
- Stylus with url– 0.52.4
- poststylus – 0.2.1
- postcss-svg – 1.0.1
- postcss-zindex – 2.0.0
- autoprefixer – 6.0.3
Run command
meteor test-packages ./
This may not be compatible with other Meteor Stylus libraries. Please uninstall anything related to Stylus before running this, otherwise your application may fail with a fibers-related error.