Skip to content

Commit 3137d46

Browse files
committed
Update readme describing new option
1 parent 14c52f7 commit 3137d46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ export const barBaz: string;
5757

5858
`css-loader` exports mappings to `exports.locals` which is incompatible with the `namedExport`-option unless paired with `extract-text-webpack-plugin` or `style-loader`. They move the exported properties from `exports.locals` to `exports` making them required for `namedExport` to work, and `namedExport` required for them to work. *Always combine usage of `extract-text-webpack-plugin` or `style-loader` with the `namedExport`-option.*
5959

60+
### `orderAlphabetically`-option
61+
Orders generated exports or interface properties alphabetically. This is useful when committing the .d.ts files as the default ordering is not always consistent and can change from commit to commit.
62+
e.g.:
63+
64+
```js
65+
{ test: /\.css$/, loader: 'typings-for-css-modules-loader?modules&orderAlphabetically' }
66+
```
67+
6068
### `silent`-option
6169
To silence the loader because you get annoyed by its warnings or for other reasons, you can simply pass the "silent" query to the loader and it will shut up.
6270
e.g.:

0 commit comments

Comments
 (0)