diff --git a/src/languages/postcss.md b/src/languages/postcss.md index 99e221904..384ee2e02 100644 --- a/src/languages/postcss.md +++ b/src/languages/postcss.md @@ -31,6 +31,21 @@ There are two ways to enable CSS modules: {% samplefile ".postcssrc" %} ```json/1 +{ + "modules": true +} +``` + +{% endsamplefile %} +{% endsample %} + +To change [postcss-modules options](https://github.com/css-modules/postcss-modules#usage), pass them via `plugins`: + + +{% sample %} +{% samplefile ".postcssrc" %} + +```json/4 { "modules": true, "plugins": {