0.2.0 • Published 9 years ago

postcss-remove-base v0.2.0

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

postcss-remove-base Build Status

Remove rules that have @base annotation

Install

$ npm install postcss-remove-base

Example

var fs = require('fs')
var postcss = require('postcss')
var removeBase = require('postcss-remove-base')

var css = fs.readFileSync('input.css', 'utf-8')

var output = postcss(css)
  .use(removeBase())
  .process(css)
  .css

Using this input.css:

.base {
  /*
   * @base
   */
  color: red;
}

.class {
  padding: 10px;
}

You will get:

.class {
  padding: 10px;
}

License

The MIT License (MIT)

Copyright (c) 2015 Masaaki Morishita