Skip to content

Commit 8194b1d

Browse files
committedJan 8, 2018
📝
1 parent 4f5ec11 commit 8194b1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ When using from webpack, pass its file system in `postcss.config.js` form:
7272
module.exports = (ctx) => ({
7373
plugins: [
7474
require('postcss-modules-values-replace')({fs: ctx.webpack._compiler.inputFileSystem}),
75-
require('postcss-color-function'),
75+
require('postcss-calc'),
7676
]
7777
});
7878
```
@@ -153,7 +153,8 @@ and leads to export of following values to JS:
153153

154154
### Other computations and @value
155155

156-
[postcss-color-function] and other plugins probably won't work *inside* **@value** as they don't traverse media queries.
156+
[postcss-calc] and [postcss-color-function] are known to work *inside* **@value** as they traverse media queries.
157+
Experience with other plugins may differ if they ignore media queries.
157158

158159
### Extracting values for programmatic use
159160
This plugin provides to postcss a custom [messages](http://api.postcss.org/Result.html#messages) object with `type: 'values'`.

0 commit comments

Comments
 (0)
Please sign in to comment.