Css Modules Compiler
css-modules, all the generated css files will be merged, deduped and optimized in a single css file. All the
es2015 modules will be checked using an AST parser and all the
css import declaration will be substituted with a static object containing the generated css classnames.
The compile command accepts several options: postcss plugins to be used when compiling css files, a blacklist of patterns used to avoid compilation of non
css-modules files, a target folder to duplicate the source and avoid changing the original sources and more.
See the official documentation
$ npm test
To try the module clone the repository, install
npm dependencies and then run the following commands to see it in action.
npm run examples:basic
npm run examples:advanced