0.1.0 • Published 6 years ago
postcss-color-function-remover v0.1.0
postcss-color-function-remover
Simple color function remover.
Useful for apply after postcss-color-function and postcss-custom-properties with preserve: true option, or after cssnext with some options.
Installation
$ npm install postcss-color-function-remover
Usage
const {readFileSync, writeFile} = require("fs");
const postcss = require("postcss");
const cssnext = require("cssnext");
const colorFunctionRemover = require("postcss-color-function-remover");
postcss([
cssnext({
features: {
customProperties: {
preserve: true
}
}
}),
colorFunctionRemover()
])
.process(readFileSync("input.css", "utf8"))
.then(result => {
fs.writeFile('output.css', result.css);
});
0.1.0
6 years ago