Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fireantjs/fireant-stylus
Stylus plugin for Fireant
https://github.com/fireantjs/fireant-stylus
autoprefixer fireant minify-css npm npmjs stylus
Last synced: about 1 month ago
JSON representation
Stylus plugin for Fireant
- Host: GitHub
- URL: https://github.com/fireantjs/fireant-stylus
- Owner: fireantjs
- License: mit
- Created: 2017-02-14T17:06:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-19T10:38:22.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T06:24:48.607Z (3 months ago)
- Topics: autoprefixer, fireant, minify-css, npm, npmjs, stylus
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fireant-stylus
Stylus plugin for [Fireant](https://github.com/fireantjs/fireant)
## Installation
```shell
npm install -D fireant-stylus
```## Sample fireantfile.js
```javascript
var fireant = require("fireant");
var stylus = require("fireant-stylus");fireant.task("watch", function() {
fireant.watch("css/*.styl", function(file) {
stylus("css/index.styl").save("html/css/styles.css");
});
});
```## Sample fireantfile.js, with options
```javascript
var fireant = require("fireant");
var stylus = require("fireant-stylus");
var global = require("global");stylus: {
minify: {
disabled: false, // set true to disable minify (uses clean-css)
compatibility: "ie9",
keepBreaks: false,
keepSpecialComments: 0,
mediaMerging: true,
sourceMap: false
},
autoprefixer: {
disabled: false, // set true to disable autoprefixer
browsers: ["last 2 versions"]
}
};fireant.task("watch", function() {
fireant.watch("css/*.styl", function(file) {
stylus("css/index.styl").save("html/css/styles.css");
});
});
```