@unocss/nuxt 0.61.0 → 0.61.3
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 +2 -2
- package/package.json +16 -16
package/dist/index.mjs
CHANGED
|
@@ -99,7 +99,7 @@ const index = defineNuxtModule({
|
|
|
99
99
|
addTemplate({
|
|
100
100
|
filename: "uno.config.mjs",
|
|
101
101
|
async getContents() {
|
|
102
|
-
const configPaths = (await Promise.all(nuxt.options._layers.map(
|
|
102
|
+
const configPaths = (await Promise.all(nuxt.options._layers.slice(1).map(
|
|
103
103
|
(layer) => findPath(options.configFile || ["uno.config", "unocss.config"], { cwd: layer.config.srcDir })
|
|
104
104
|
))).filter(Boolean).reverse();
|
|
105
105
|
return `import { mergeConfigs } from '@unocss/core'
|
|
@@ -113,7 +113,7 @@ export default mergeConfigs([${configPaths.map((_, index) => `cfg${index}`).join
|
|
|
113
113
|
}
|
|
114
114
|
async function loadUnoConfig() {
|
|
115
115
|
const { config: unoConfig } = await loadConfig(process.cwd(), {
|
|
116
|
-
configFile: options.
|
|
116
|
+
configFile: options.configFile
|
|
117
117
|
}, [], options);
|
|
118
118
|
await nuxt.callHook("unocss:config", unoConfig);
|
|
119
119
|
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")) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.61.
|
|
4
|
+
"version": "0.61.3",
|
|
5
5
|
"description": "Nuxt module for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"runtime"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nuxt/kit": "^3.12.
|
|
42
|
-
"@unocss/config": "0.61.
|
|
43
|
-
"@unocss/core": "0.61.
|
|
44
|
-
"@unocss/preset-
|
|
45
|
-
"@unocss/preset-
|
|
46
|
-
"@unocss/preset-
|
|
47
|
-
"@unocss/preset-
|
|
48
|
-
"@unocss/preset-uno": "0.61.
|
|
49
|
-
"@unocss/preset-
|
|
50
|
-
"@unocss/preset-
|
|
51
|
-
"@unocss/reset": "0.61.
|
|
52
|
-
"@unocss/
|
|
53
|
-
"@unocss/
|
|
54
|
-
"unocss": "0.61.
|
|
41
|
+
"@nuxt/kit": "^3.12.3",
|
|
42
|
+
"@unocss/config": "0.61.3",
|
|
43
|
+
"@unocss/core": "0.61.3",
|
|
44
|
+
"@unocss/preset-attributify": "0.61.3",
|
|
45
|
+
"@unocss/preset-typography": "0.61.3",
|
|
46
|
+
"@unocss/preset-icons": "0.61.3",
|
|
47
|
+
"@unocss/preset-tagify": "0.61.3",
|
|
48
|
+
"@unocss/preset-uno": "0.61.3",
|
|
49
|
+
"@unocss/preset-wind": "0.61.3",
|
|
50
|
+
"@unocss/preset-web-fonts": "0.61.3",
|
|
51
|
+
"@unocss/reset": "0.61.3",
|
|
52
|
+
"@unocss/webpack": "0.61.3",
|
|
53
|
+
"@unocss/vite": "0.61.3",
|
|
54
|
+
"unocss": "0.61.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@nuxt/schema": "^3.12.
|
|
57
|
+
"@nuxt/schema": "^3.12.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "unbuild",
|