@unocss/vite 0.45.7 → 0.45.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/README.md +3 -2
- package/dist/index.cjs +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
The Vite plugin for UnoCSS. Ships with the `unocss` package.
|
|
4
4
|
|
|
5
|
-
> This plugin does not come with any default presets. You are building a meta framework on top of UnoCSS, see [this file](https://github.com/unocss/unocss/blob/main/packages/unocss/src/vite.ts) for an example to bind the default presets.
|
|
6
|
-
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
9
7
|
```bash
|
|
@@ -30,6 +28,9 @@ import 'uno.css'
|
|
|
30
28
|
|
|
31
29
|
### Presetless usage
|
|
32
30
|
|
|
31
|
+
> This plugin does not come with any default presets.
|
|
32
|
+
> If you are building a meta framework on top of UnoCSS, see [this file](https://github.com/unocss/unocss/blob/main/packages/unocss/src/vite.ts) for an example to bind the default presets.
|
|
33
|
+
|
|
33
34
|
```bash
|
|
34
35
|
npm i -D @unocss/vite
|
|
35
36
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -329,9 +329,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
|
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
name: "unocss:global:build:generate",
|
|
332
|
-
apply
|
|
333
|
-
return command === "build" && !options.build?.ssr;
|
|
334
|
-
},
|
|
332
|
+
apply: "build",
|
|
335
333
|
configResolved(config) {
|
|
336
334
|
viteConfig = config;
|
|
337
335
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -318,9 +318,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
|
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
name: "unocss:global:build:generate",
|
|
321
|
-
apply
|
|
322
|
-
return command === "build" && !options.build?.ssr;
|
|
323
|
-
},
|
|
321
|
+
apply: "build",
|
|
324
322
|
configResolved(config) {
|
|
325
323
|
viteConfig = config;
|
|
326
324
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.12",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"./client": {
|
|
30
30
|
"types": "./dist/client.d.ts",
|
|
31
|
-
"require": "./dist/client.
|
|
31
|
+
"require": "./dist/client.cjs",
|
|
32
32
|
"import": "./dist/client.mjs"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ampproject/remapping": "^2.2.0",
|
|
46
46
|
"@rollup/pluginutils": "^4.2.1",
|
|
47
|
-
"@unocss/config": "0.45.
|
|
48
|
-
"@unocss/core": "0.45.
|
|
49
|
-
"@unocss/inspector": "0.45.
|
|
50
|
-
"@unocss/scope": "0.45.
|
|
51
|
-
"@unocss/transformer-directives": "0.45.
|
|
47
|
+
"@unocss/config": "0.45.12",
|
|
48
|
+
"@unocss/core": "0.45.12",
|
|
49
|
+
"@unocss/inspector": "0.45.12",
|
|
50
|
+
"@unocss/scope": "0.45.12",
|
|
51
|
+
"@unocss/transformer-directives": "0.45.12",
|
|
52
52
|
"magic-string": "^0.26.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@unocss/shared-integration": "0.45.
|
|
56
|
-
"vite": "^3.0.
|
|
55
|
+
"@unocss/shared-integration": "0.45.12",
|
|
56
|
+
"vite": "^3.0.8"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|