@unocss/nuxt 0.49.8 → 0.50.1
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.mjs +4 -2
- package/package.json +16 -16
package/dist/index.mjs
CHANGED
|
@@ -70,8 +70,10 @@ const index = defineNuxtModule({
|
|
|
70
70
|
watch: false
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
const { config: unoConfig } = await loadConfig(process.cwd(), {
|
|
74
|
-
|
|
73
|
+
const { config: unoConfig } = await loadConfig(process.cwd(), {
|
|
74
|
+
configFile: options.configFile
|
|
75
|
+
}, [], options);
|
|
76
|
+
if (isNuxt3() && nuxt.options.postcss.plugins.cssnano && unoConfig.transformers?.some((t) => t.name === "@unocss/transformer-directives" && t.enforce !== "pre")) {
|
|
75
77
|
const preset = nuxt.options.postcss.plugins.cssnano.preset;
|
|
76
78
|
nuxt.options.postcss.plugins.cssnano = {
|
|
77
79
|
preset: [preset?.[0] || "default", Object.assign(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.1",
|
|
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.2.
|
|
41
|
-
"@unocss/config": "0.
|
|
42
|
-
"@unocss/core": "0.
|
|
43
|
-
"@unocss/preset-attributify": "0.
|
|
44
|
-
"@unocss/preset-icons": "0.
|
|
45
|
-
"@unocss/preset-tagify": "0.
|
|
46
|
-
"@unocss/preset-typography": "0.
|
|
47
|
-
"@unocss/preset-uno": "0.
|
|
48
|
-
"@unocss/preset-web-fonts": "0.
|
|
49
|
-
"@unocss/preset-wind": "0.
|
|
50
|
-
"@unocss/reset": "0.
|
|
51
|
-
"@unocss/vite": "0.
|
|
52
|
-
"@unocss/webpack": "0.
|
|
53
|
-
"unocss": "0.
|
|
40
|
+
"@nuxt/kit": "^3.2.2",
|
|
41
|
+
"@unocss/config": "0.50.1",
|
|
42
|
+
"@unocss/core": "0.50.1",
|
|
43
|
+
"@unocss/preset-attributify": "0.50.1",
|
|
44
|
+
"@unocss/preset-icons": "0.50.1",
|
|
45
|
+
"@unocss/preset-tagify": "0.50.1",
|
|
46
|
+
"@unocss/preset-typography": "0.50.1",
|
|
47
|
+
"@unocss/preset-uno": "0.50.1",
|
|
48
|
+
"@unocss/preset-web-fonts": "0.50.1",
|
|
49
|
+
"@unocss/preset-wind": "0.50.1",
|
|
50
|
+
"@unocss/reset": "0.50.1",
|
|
51
|
+
"@unocss/vite": "0.50.1",
|
|
52
|
+
"@unocss/webpack": "0.50.1",
|
|
53
|
+
"unocss": "0.50.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@nuxt/schema": "^3.2.
|
|
56
|
+
"@nuxt/schema": "^3.2.2"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|