PostCSS plugin to use modular-css
within a PostCSS processor instance.
Install
$ npm i postcss-modular-css
Usage
postcss-modular-css
provides a PostCSS plugin that can be used like any other. It will output a message with a type
of modular-css-exports
containing all the exported class compositions.
API
var postcss = processor = ; processor ;
Config
$ postcss --config postcss.json input.css
CLI
$ postcss --use modular-css/postcss input.css
Options
json
Write the class composition data to this location on disk.
Shared Options
All other options are passed to the underlying Processor
instance, see Options.