0.1.1 • Published 9 years ago

jade-postcss v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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;
      }
    }