npm install csso-stylus```
npm install csso-stylus --save-dev
You can include csso-stylus via Stylus’s use method:
`js
var stylus = require('stylus');
var csso = require('csso-stylus');
stylus(css)
.use(csso())
.render(function(err, output){
console.log(output);
});
`
You can also disable structure minimization:
`js`
stylus(css)
.use(csso({restructure: false}))
...
You can use csso-stylus with grunt-contrib-stylus:
`js`
grunt.initConfig({
stylus: {
options: {
use: [
require('csso-stylus')
]
}
compile: {
files: {
'build/styles.css': 'styles/index.styl'
}
}
}
});
Or if you want to pass options:
`js`
use: [
function() { return require('csso-stylus')({restructure: false}); }
]
* First release.
---
The MIT License, see the included License.md` file.