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";
}
postcss([ require('postcss-modules-tilda') ])
See PostCSS docs for examples for your environment.