Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/princed/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.
https://github.com/princed/postcss-modules-tilda

css-loader css-modules postcss postcss-plugin tilda

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# PostCSS Modules Tilda [![Build Status][ci-img]][ci]

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

[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/princed/postcss-modules-tilda.svg
[ci]: https://travis-ci.org/princed/postcss-modules-tilda
[used to do before 2.0]: https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#breaking-changes-1

Before:

```css
@import "module/module.css";
@value module from "module/module.css";

a {
composes: module;
composes: selector from "module/module.css";
}
```

After:

```css
@import "~module/module.css";
@value module from "~module/module.css";

a {
composes: module;
composes: selector from "~module/module.css";
}

```

## Usage

```js
postcss([ require('postcss-modules-tilda') ])
```

See [PostCSS] docs for examples for your environment.