diff --git a/.vscode/launch.json b/.vscode/launch.json index 813ec7c..9967124 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,21 @@ { "version": "0.2.0", "configurations": [ + { + "name": "Debug tests", + "preLaunchTask": "Build", + "request": "launch", + "cwd": "${workspaceFolder}", + "type": "node", + "runtimeExecutable": "npm", + "args": [ + "run", + "test" + ], + "env": { + "NODE_OPTIONS": "--inspect", + }, + }, { "name": "Next.js: debug server-side", "preLaunchTask": "Build", diff --git a/README.md b/README.md index a4898fe..39ad153 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ This improves readability and follows the same pattern as regular CSS. When the plugin finds `'.module.css'` import in the file, it will transform **all** CSS classnames to use the imported CSS module. However, you may want to use regular CSS classnames and prevent transformations on them. This -can be done by adding `:g` at the end of the classname: +can be done by adding `g:` at the start of the classname: ```jsx import "./style.module.css" function Component() { - return
+ return
} ``` @@ -120,11 +120,11 @@ function Component() { You can use multiple CSS module within a file using Named modules. To use Named CSS modules, you can add labels to each CSS module import -in the file by adding `:` at the end of the path: +in the file by adding `:` at the end of the path: ```jsx -import "./layout.module.css:layout" -import "./component.module.css:com" +import "layout:./layout.module.css" +import "com:./component.module.css" ``` And use the same labels for writing your classnames: @@ -132,9 +132,9 @@ And use the same labels for writing your classnames: ```jsx function Component() { return ( -