A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://npmjs.com/postcss-modular-css below:

postcss-modular-css - npm

postcss-modular-css

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   = require("postcss"),

    processor = postcss([

        require("postcss-modular-css")({

            json : "./path/to/output.json"

        })

    ]);

 

processor.process("<css>")

    .then((result) => {

        

        

        

        

    });

Config
$ postcss --config postcss.json input.css

{

    "output" : "out.css",

    

    "postcss-modular-css": {

        "json" : "./path/to/output.json"

    }

}

 

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.


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