jade-postcss
v0.1.1
Published
Simple module which adds a PostCSS filter to jade.
Downloads
3
Readme
jade-postcss
This is a simple module which adds a PostCSS filter to jade.
##Installation
$ npm install jade-postcss
##Usage
var jade = require('jade');
var postcss = require('jade-postcss');
jade.filters.postcss = postcss({ plugins: [require('autoprefixer'), ...]});
OR
var jade = require('jade');
var postcss = require('jade-postcss');
jade = postcss({plugins: [require('autoprefixer'), ...]}, jade);
Now you can use PostCSS in your jade templates as following.
style
:postcss
.hello {
h1 {
color: red;
}
}