jade-postcss

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i jade-postcss

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • antono