PostCSS plugin to use modular-css
within a PostCSS processor instance.
$ npm i postcss-modular-css
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.
Configvar postcss   = require("postcss"),
    processor = postcss([
        require("postcss-modular-css")({
            json : "./path/to/output.json"
        })
    ]);
Â
processor.process("<css>")
    .then((result) => {
       Â
       Â
       Â
       Â
    });
$ postcss --config postcss.json input.css
CLI{
    "output" : "out.css",
   Â
    "postcss-modular-css": {
        "json" : "./path/to/output.json"
    }
}
Â
$ postcss --use modular-css/postcss input.css
Options json
Write the class composition data to this location on disk.
Shared OptionsAll other options are passed to the underlying Processor
instance, see Options.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4