estore-preprocessor
v3.3.0
Published
PostCSS preprocessor
Downloads
17
Readme
preprocessor
PostCSS preprocessor
Install
$ npm install --save estore-preprocessor
Usage
const postcss = require('postcss');
const preprocessor = require('estore-preprocessor');
postcss()
.use(preprocessor())
.process(':root {--color: #fff;}body {background-color: var(--color);}')
.then(res => {
console.log(res.css);
//=> body {background-color: #fff;}
});
API
preprocessor(options)
options
Type: object
Object of options to pass to the preprocessor.