@vdegenne/vite-plugin-css-modules 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -2
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vdegenne/vite-plugin-css-modules",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"types": "./types.d.ts",
|
|
6
5
|
"exports": {
|
|
7
6
|
".": {
|
|
8
7
|
"import": "./lib/index.js",
|
|
9
8
|
"types": "./lib/index.d.ts"
|
|
9
|
+
},
|
|
10
|
+
"./css": {
|
|
11
|
+
"types": "./types.d.ts"
|
|
10
12
|
}
|
|
11
13
|
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/vdegenne/vite-plugin-css-modules.git"
|
|
17
|
+
},
|
|
12
18
|
"scripts": {
|
|
13
19
|
"build": "wireit"
|
|
14
20
|
},
|
package/readme.md
CHANGED
|
@@ -20,6 +20,6 @@ Then in your code importing a stylesheet like that
|
|
|
20
20
|
import styles from './stylesheet.css' with {type: 'css'}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
will resolve the import to a CSSStyleSheet containing the
|
|
23
|
+
will resolve the import to a CSSStyleSheet containing the styles defined in the file.
|
|
24
24
|
|
|
25
|
-
Add `@vdegenne/vite-plugin-css-modules` in `tsconfig.json` types to override vite `"*.css"` imports if you need.
|
|
25
|
+
Add `@vdegenne/vite-plugin-css-modules/css` in `tsconfig.json` types to override vite `"*.css"` imports if you need.
|