You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`customMatcher`|`"\\.module\\.(sa\|sc\|c)ss$"`| Change the file extensions that this plugin works with. |
44
-
|`camelCase`|`false`| Implements the behaviour of the [`camelCase` CSS Loader option](https://github.com/webpack-contrib/css-loader#camelcase) (accepting the same values). |
|`customMatcher`|`"\\.module\\.(c\|le\|sa\|sc)ss$"`| Change the file extensions that this plugin works with. |
44
+
|`camelCase`|`false`| Implements the behaviour of the [`camelCase` CSS Loader option](https://github.com/webpack-contrib/css-loader#camelcase) (accepting the same values). |
45
45
46
46
The below is an example that only matches "\*.m.css" files, and [camel-cases dashes](https://github.com/webpack-contrib/css-loader#camelcase).
47
47
@@ -65,17 +65,16 @@ The below is an example that only matches "\*.m.css" files, and [camel-cases das
65
65
66
66
By default, VSCode will use it's own version of TypeScript. To make it work with this plugin, you have two options:
67
67
68
-
1. Add this plugin to `"typescript.tsserver.pluginPaths"` in settings. Note that this method doesn't currently support
69
-
plugin options. This is planned for the [November update](https://github.com/Microsoft/vscode/issues/62876).
68
+
1. Use your workspace's version of TypeScript, which will load plugins from your `tsconfig.json` file. This is the recommended approach. For instructions, see: [Using the workspace version of TypeScript](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript).
69
+
70
+
2. Add this plugin to `"typescript.tsserver.pluginPaths"` in settings. Note that this method doesn't currently support plugin options.
2. Use your workspace's version of TypeScript, which will load the plugins from your `tsconfig.json` file. For instructions, see: [Using the workspace version of TypeScript](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript).
78
-
79
78
### Custom definitions
80
79
81
80
_Note: Create React App users can skip this section if you're using `[email protected]` or higher._
@@ -84,7 +83,7 @@ If your project doesn't already have global declarations for CSS Modules, you wi
84
83
85
84
Where you store global declarations is up to you. An example might look like: `src/custom.d.ts`.
86
85
87
-
The below is an example that you can copy, or modify if you use a `customMatcher`.
86
+
The below is an example that you can copy or modify. If you use a `customMatcher`, you'll need to modify it.
0 commit comments