https://github.com/matype/postcss-remove-base
Remove rules that have `@base` annotation
https://github.com/matype/postcss-remove-base
Last synced: 9 months ago
JSON representation
Remove rules that have `@base` annotation
- Host: GitHub
- URL: https://github.com/matype/postcss-remove-base
- Owner: matype
- License: other
- Created: 2015-05-11T13:10:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-17T01:52:18.000Z (almost 11 years ago)
- Last Synced: 2025-02-11T09:41:00.297Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: license
Awesome Lists containing this project
README
# postcss-remove-base [](https://travis-ci.org/morishitter/postcss-remove-base)
Remove rules that have `@base` annotation
## Install
```shell
$ npm install postcss-remove-base
```
## Example
```js
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`:
```css
.base {
/*
* @base
*/
color: red;
}
.class {
padding: 10px;
}
```
You will get:
```css
.class {
padding: 10px;
}
```
## License
The MIT License (MIT)
Copyright (c) 2015 Masaaki Morishita