1.8 KiB
1.8 KiB
PostCSS postcss-explore
PostCSS postcss-explore lets you ... in CSS.
.example { ... }
/* becomes */
.example { ... }
Usage
Add PostCSS postcss-explore to your project:
npm install postcss-postcss-explore --save-dev
Use PostCSS postcss-explore to process your CSS:
const postcssPostcssExplore = require('postcss-postcss-explore');
postcssPostcssExplore.process(YOUR_CSS /*, processOptions, pluginOptions */);
Or use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssPostcssExplore = require('postcss-postcss-explore');
postcss([
postcssPostcssExplore(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
PostCSS postcss-explore runs in all Node environments, with special instructions for:
Node | PostCSS CLI | Webpack | Create React App | Gulp | Grunt |
---|
Options
...