postcss-modules-tilda
v2.0.0
Published
PostCSS plugin to restore the way to resolve modules CSS Modules values paths that css-loader used before 1.0
Downloads
467,488
Maintainers
Readme
PostCSS Modules Tilda
PostCSS plugin to restore the way to resolve modules CSS Modules values paths that css-loader used to do before 2.0.
Before:
@import "module/module.css";
@value module from "module/module.css";
a {
composes: module;
composes: selector from "module/module.css";
}
After:
@import "~module/module.css";
@value module from "~module/module.css";
a {
composes: module;
composes: selector from "~module/module.css";
}
Usage
postcss([ require('postcss-modules-tilda') ])
See PostCSS docs for examples for your environment.