postcss-remove-base

0.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i postcss-remove-base

Weekly Downloads

21

Version

0.2.0

License

MIT

Last publish

Collaborators

  • morishitter