css-modules / postcss-icss-values

Pass arbitrary constants between your module files
MIT License
203 stars 18 forks source link

README is misleading: cannot compose from value #98

Closed OliverJAsh closed 7 years ago

OliverJAsh commented 7 years ago

The README suggests you can import a file and then use the identifier in a composes value, e,g,:

@value foo: "./foo.css";
.bar {
  composes: baz from foo;
}

However, this errors with:

referenced class name "from" in composes not found
OliverJAsh commented 7 years ago

Related issues:

OliverJAsh commented 7 years ago

Turns out the issue was further upstream in css-loader, which depends on this module.

Issue: https://github.com/webpack-contrib/css-loader/issues/533 PR to fix: https://github.com/webpack-contrib/css-loader/pull/534