Skip to content

PostCSS plugin to restore the way to resolve modules CSS Modules values paths that css-loader used to do before 2.0.

License

Notifications You must be signed in to change notification settings

princed/postcss-modules-tilda

Repository files navigation

PostCSS Modules Tilda Build Status

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.

About

PostCSS plugin to restore the way to resolve modules CSS Modules values paths that css-loader used to do before 2.0.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •