@@ -38,13 +38,14 @@ module.exports = {
3838
3939## Options
4040
41- | Name | Type | Description |
42- | :-------------------------------------: | :---------: | :------------------------------------------------------------------------------: |
43- | ** [ ` banner ` ] ( #banner ) ** | ` {String} ` | To add a 'banner' prefix to each generated ` *.d.ts ` file |
44- | ** [ ` formatter ` ] ( #formatter ) ** | ` {String} ` | Formats the generated ` *.d.ts ` file with specified formatter, eg. ` prettier ` |
45- | ** [ ` eol ` ] ( #eol ) ** | ` {String} ` | Newline character to be used in generated ` *.d.ts ` files |
46- | ** [ ` verifyOnly ` ] ( #verifyOnly ) ** | ` {Boolean} ` | Validate generated ` *.d.ts ` files and fail if an update is needed (useful in CI) |
47- | ** [ ` disableLocalsExport ` ] ( #disableLocalsExport ) ** | ` {Boolean} ` | Disable the use of locals export. |
41+ | Name | Type | Description |
42+ | :-----------------------------------------------: | :---------: | :----------------------------------------------------------: |
43+ | ** [ ` banner ` ] ( #banner ) ** | ` {String} ` | To add a 'banner' prefix to each generated ` *.d.ts ` file |
44+ | ** [ ` formatter ` ] ( #formatter ) ** | ` {String} ` | Formats the generated ` *.d.ts ` file with specified formatter, eg. ` prettier ` |
45+ | ** [ ` eol ` ] ( #eol ) ** | ` {String} ` | Newline character to be used in generated ` *.d.ts ` files |
46+ | ** [ ` verifyOnly ` ] ( #verifyOnly ) ** | ` {Boolean} ` | Validate generated ` *.d.ts ` files and fail if an update is needed (useful in CI) |
47+ | ** [ ` disableLocalsExport ` ] ( #disableLocalsExport ) ** | ` {Boolean} ` | Disable the use of locals export. |
48+ | ** [ ` prettierConfigFile ` ] ( #prettierConfigFile ) ** | ` {String} ` | Path to prettier config file |
4849
4950### ` banner `
5051
@@ -188,6 +189,35 @@ module.exports = {
188189};
189190```
190191
192+ ### ` prettierConfigFile `
193+
194+ Path to the prettier config file
195+
196+ ``` js
197+ module .exports = {
198+ module: {
199+ rules: [
200+ {
201+ test: / \. css$ / i ,
202+ use: [
203+ {
204+ loader: " @teamsupercell/typings-for-css-modules-loader" ,
205+ options: {
206+ prettierConfigFile: resolve (__dirname , ' ../.prettierrc' ),
207+ }
208+ },
209+ {
210+ loader: " css-loader" ,
211+ options: { modules: true }
212+ }
213+ ]
214+ }
215+ ]
216+ }
217+ };
218+ ```
219+
220+
191221
192222## Example
193223
0 commit comments