@unocss/nuxt 66.2.3 → 66.3.1-beta.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 +2 -2
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,6 @@ import process from 'node:process';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { defineNuxtModule, addPluginTemplate, isNuxt2, addComponentsDir, addTemplate, findPath, isNuxt3, extendViteConfig, extendWebpackConfig } from '@nuxt/kit';
|
|
5
5
|
import { createRecoveryConfigLoader } from '@unocss/config';
|
|
6
|
-
import VitePlugin from '@unocss/vite';
|
|
7
|
-
import WebpackPlugin from '@unocss/webpack';
|
|
8
6
|
import { cssIdRE } from '@unocss/core';
|
|
9
7
|
import presetAttributify from '@unocss/preset-attributify';
|
|
10
8
|
import presetIcons from '@unocss/preset-icons';
|
|
@@ -129,12 +127,14 @@ export default mergeConfigs([${configPaths.map((_, index) => `cfg${index}`).join
|
|
|
129
127
|
}
|
|
130
128
|
await nuxt.callHook("unocss:config", unoConfig);
|
|
131
129
|
extendViteConfig(async (config) => {
|
|
130
|
+
const { default: VitePlugin } = await import('@unocss/vite');
|
|
132
131
|
config.plugins = config.plugins || [];
|
|
133
132
|
config.plugins.unshift(...VitePlugin({
|
|
134
133
|
mode: options.mode
|
|
135
134
|
}, unoConfig));
|
|
136
135
|
});
|
|
137
136
|
extendWebpackConfig(async (config) => {
|
|
137
|
+
const { default: WebpackPlugin } = await import('@unocss/webpack');
|
|
138
138
|
config.plugins = config.plugins || [];
|
|
139
139
|
config.plugins.unshift(WebpackPlugin({}, unoConfig));
|
|
140
140
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.
|
|
4
|
+
"version": "66.3.1-beta.1",
|
|
5
5
|
"description": "Nuxt module for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@nuxt/kit": "^3.17.5",
|
|
42
|
-
"@unocss/config": "66.
|
|
43
|
-
"@unocss/core": "66.
|
|
44
|
-
"@unocss/preset-
|
|
45
|
-
"@unocss/preset-
|
|
46
|
-
"@unocss/preset-typography": "66.
|
|
47
|
-
"@unocss/preset-
|
|
48
|
-
"@unocss/preset-
|
|
49
|
-
"@unocss/preset-
|
|
50
|
-
"@unocss/
|
|
51
|
-
"@unocss/vite": "66.
|
|
52
|
-
"@unocss/
|
|
53
|
-
"unocss": "66.
|
|
54
|
-
"@unocss/
|
|
42
|
+
"@unocss/config": "66.3.1-beta.1",
|
|
43
|
+
"@unocss/core": "66.3.1-beta.1",
|
|
44
|
+
"@unocss/preset-icons": "66.3.1-beta.1",
|
|
45
|
+
"@unocss/preset-tagify": "66.3.1-beta.1",
|
|
46
|
+
"@unocss/preset-typography": "66.3.1-beta.1",
|
|
47
|
+
"@unocss/preset-uno": "66.3.1-beta.1",
|
|
48
|
+
"@unocss/preset-web-fonts": "66.3.1-beta.1",
|
|
49
|
+
"@unocss/preset-attributify": "66.3.1-beta.1",
|
|
50
|
+
"@unocss/reset": "66.3.1-beta.1",
|
|
51
|
+
"@unocss/vite": "66.3.1-beta.1",
|
|
52
|
+
"@unocss/preset-wind": "66.3.1-beta.1",
|
|
53
|
+
"unocss": "66.3.1-beta.1",
|
|
54
|
+
"@unocss/webpack": "66.3.1-beta.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@nuxt/schema": "^3.17.5"
|