@unocss/nuxt 0.51.8 → 0.51.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/dist/index.d.ts +7 -0
- package/dist/index.mjs +2 -1
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,15 @@ import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
|
7
7
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
8
8
|
import { TagifyOptions } from '@unocss/preset-tagify';
|
|
9
9
|
import { PresetWindOptions } from '@unocss/preset-wind';
|
|
10
|
+
import { VitePluginConfig } from '@unocss/vite';
|
|
10
11
|
|
|
11
12
|
interface UnocssNuxtOptions extends UserConfig {
|
|
13
|
+
/**
|
|
14
|
+
* CSS Generation mode. Only work with Vite.
|
|
15
|
+
*
|
|
16
|
+
* @see https://unocss.dev/integrations/vite#modes
|
|
17
|
+
*/
|
|
18
|
+
mode?: VitePluginConfig['mode'];
|
|
12
19
|
/**
|
|
13
20
|
* Injecting `uno.css` entry
|
|
14
21
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -45,6 +45,7 @@ const index = defineNuxtModule({
|
|
|
45
45
|
configKey: "unocss"
|
|
46
46
|
},
|
|
47
47
|
defaults: {
|
|
48
|
+
mode: "global",
|
|
48
49
|
autoImport: true,
|
|
49
50
|
preflight: false,
|
|
50
51
|
components: true,
|
|
@@ -90,7 +91,7 @@ const index = defineNuxtModule({
|
|
|
90
91
|
}
|
|
91
92
|
nuxt.hook("vite:extend", ({ config }) => {
|
|
92
93
|
config.plugins = config.plugins || [];
|
|
93
|
-
config.plugins.unshift(...VitePlugin({}, unoConfig));
|
|
94
|
+
config.plugins.unshift(...VitePlugin({ mode: options.mode }, unoConfig));
|
|
94
95
|
});
|
|
95
96
|
if (nuxt.options.dev) {
|
|
96
97
|
nuxt.hook("devtools:customTabs", (tabs) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.12",
|
|
4
4
|
"description": "Nuxt module for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"homepage": "https://github.com/unocss/unocss#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "
|
|
11
|
+
"url": "https://github.com/unocss/unocss",
|
|
12
12
|
"directory": "packages/nuxt"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"runtime"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@nuxt/kit": "^3.
|
|
41
|
-
"@unocss/config": "0.51.
|
|
42
|
-
"@unocss/core": "0.51.
|
|
43
|
-
"@unocss/preset-attributify": "0.51.
|
|
44
|
-
"@unocss/preset-icons": "0.51.
|
|
45
|
-
"@unocss/preset-tagify": "0.51.
|
|
46
|
-
"@unocss/preset-typography": "0.51.
|
|
47
|
-
"@unocss/preset-uno": "0.51.
|
|
48
|
-
"@unocss/preset-web-fonts": "0.51.
|
|
49
|
-
"@unocss/preset-wind": "0.51.
|
|
50
|
-
"@unocss/reset": "0.51.
|
|
51
|
-
"@unocss/vite": "0.51.
|
|
52
|
-
"@unocss/webpack": "0.51.
|
|
53
|
-
"unocss": "0.51.
|
|
40
|
+
"@nuxt/kit": "^3.4.3",
|
|
41
|
+
"@unocss/config": "0.51.12",
|
|
42
|
+
"@unocss/core": "0.51.12",
|
|
43
|
+
"@unocss/preset-attributify": "0.51.12",
|
|
44
|
+
"@unocss/preset-icons": "0.51.12",
|
|
45
|
+
"@unocss/preset-tagify": "0.51.12",
|
|
46
|
+
"@unocss/preset-typography": "0.51.12",
|
|
47
|
+
"@unocss/preset-uno": "0.51.12",
|
|
48
|
+
"@unocss/preset-web-fonts": "0.51.12",
|
|
49
|
+
"@unocss/preset-wind": "0.51.12",
|
|
50
|
+
"@unocss/reset": "0.51.12",
|
|
51
|
+
"@unocss/vite": "0.51.12",
|
|
52
|
+
"@unocss/webpack": "0.51.12",
|
|
53
|
+
"unocss": "0.51.12"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@nuxt/schema": "^3.
|
|
56
|
+
"@nuxt/schema": "^3.4.3"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|