Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
madyankin committed Jun 23, 2020
1 parent 255f832 commit 71264c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -159,16 +159,17 @@ postcss([
]);
```

## Exporting globals
### Exporting globals

If you need to export global names via the JSON object along with the local ones, add the `exportGlobals` option:

````js
```js
postcss([
require("postcss-modules")({
exportGlobals: true,
}),
]);
```

### Loading source files

Expand All @@ -180,7 +181,7 @@ postcss([
Loader: CustomLoader,
}),
]);
````
```

You can also pass any needed root path:

Expand Down

0 comments on commit 71264c0

Please sign in to comment.