Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Readme.md

CSSO plugin for Stylus

No Maintenance Intended Build Status

A CSSO plugin for Stylus.

Installation

npm install csso-stylus --save-dev

Usage

You can include csso-stylus via Stylus’s use method:

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:

stylus(css)
  .use(csso({restructure: false}))
  ...

Usage with Grunt

You can use csso-stylus with grunt-contrib-stylus:

grunt.initConfig({
  stylus: {
		options: {
			use: [
				require('csso-stylus')
			]
		}
		compile: {
			files: {
				'build/styles.css': 'styles/index.styl'
			}
		}
  }
});

Or if you want to pass options:

use: [
	function() { return require('csso-stylus')({restructure: false}); }
]

Changelog

The changelog can be found in the Changelog.md file.


License

The MIT License, see the included License.md file.

About

CSSO plugin for Stylus.

Resources

License

Packages

No packages published
You can’t perform that action at this time.