Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit 6b78ef6

Browse files
committed
document silent option
1 parent be51bd3 commit 6b78ef6

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 reuired 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+
### `silent`-option
61+
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.
62+
e.g.:
63+
64+
```js
65+
{ test: /\.css$/, loader: 'typings-for-css-modules?silent' }
66+
```
67+
6068
## Usage
6169

6270
Keep your `webpack.config` as is just instead of using `css-loader` use `typings-for-css-modules-loader`

0 commit comments

Comments
 (0)