@unocss/nuxt 0.53.1 → 0.53.4
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 +8 -0
- package/dist/index.mjs +1 -0
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,14 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
78
78
|
*/
|
|
79
79
|
wind?: boolean | PresetWindOptions;
|
|
80
80
|
}
|
|
81
|
+
declare module '@nuxt/schema' {
|
|
82
|
+
interface NuxtHooks {
|
|
83
|
+
/**
|
|
84
|
+
* When UnoCSS load config completed.
|
|
85
|
+
*/
|
|
86
|
+
'unocss:config': (config: UserConfig) => void;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
81
89
|
|
|
82
90
|
declare const _default: _nuxt_schema.NuxtModule<UnocssNuxtOptions>;
|
|
83
91
|
|
package/dist/index.mjs
CHANGED
|
@@ -85,6 +85,7 @@ const index = defineNuxtModule({
|
|
|
85
85
|
const { config: unoConfig } = await loadConfig(process.cwd(), {
|
|
86
86
|
configFile: options.configFile
|
|
87
87
|
}, [], options);
|
|
88
|
+
await nuxt.callHook("unocss:config", unoConfig);
|
|
88
89
|
if (isNuxt3() && nuxt.options.builder === "@nuxt/vite-builder" && nuxt.options.postcss.plugins.cssnano && unoConfig.transformers?.some((t) => t.name === "@unocss/transformer-directives" && t.enforce !== "pre")) {
|
|
89
90
|
const preset = nuxt.options.postcss.plugins.cssnano.preset;
|
|
90
91
|
nuxt.options.postcss.plugins.cssnano = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.4",
|
|
4
4
|
"description": "Nuxt module for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"runtime"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@nuxt/kit": "^3.5.
|
|
41
|
-
"@unocss/config": "0.53.
|
|
42
|
-
"@unocss/core": "0.53.
|
|
43
|
-
"@unocss/preset-attributify": "0.53.
|
|
44
|
-
"@unocss/preset-icons": "0.53.
|
|
45
|
-
"@unocss/preset-tagify": "0.53.
|
|
46
|
-
"@unocss/preset-typography": "0.53.
|
|
47
|
-
"@unocss/preset-uno": "0.53.
|
|
48
|
-
"@unocss/preset-web-fonts": "0.53.
|
|
49
|
-
"@unocss/preset-wind": "0.53.
|
|
50
|
-
"@unocss/reset": "0.53.
|
|
51
|
-
"@unocss/vite": "0.53.
|
|
52
|
-
"@unocss/webpack": "0.53.
|
|
53
|
-
"unocss": "0.53.
|
|
40
|
+
"@nuxt/kit": "^3.5.3",
|
|
41
|
+
"@unocss/config": "0.53.4",
|
|
42
|
+
"@unocss/core": "0.53.4",
|
|
43
|
+
"@unocss/preset-attributify": "0.53.4",
|
|
44
|
+
"@unocss/preset-icons": "0.53.4",
|
|
45
|
+
"@unocss/preset-tagify": "0.53.4",
|
|
46
|
+
"@unocss/preset-typography": "0.53.4",
|
|
47
|
+
"@unocss/preset-uno": "0.53.4",
|
|
48
|
+
"@unocss/preset-web-fonts": "0.53.4",
|
|
49
|
+
"@unocss/preset-wind": "0.53.4",
|
|
50
|
+
"@unocss/reset": "0.53.4",
|
|
51
|
+
"@unocss/vite": "0.53.4",
|
|
52
|
+
"@unocss/webpack": "0.53.4",
|
|
53
|
+
"unocss": "0.53.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@nuxt/schema": "^3.5.
|
|
56
|
+
"@nuxt/schema": "^3.5.3"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|