@unocss/nuxt 0.58.3 → 0.58.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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,12 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
preflight?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Set Nuxt's `features.inlineStyle` to `false` by default to make it work with UnoCSS.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
disableNuxtInlineStyle?: boolean;
|
|
31
37
|
/**
|
|
32
38
|
* Adjust the position of the `uno.css` injection. (Depends on `mode`)
|
|
33
39
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
preflight?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Set Nuxt's `features.inlineStyle` to `false` by default to make it work with UnoCSS.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
disableNuxtInlineStyle?: boolean;
|
|
31
37
|
/**
|
|
32
38
|
* Adjust the position of the `uno.css` injection. (Depends on `mode`)
|
|
33
39
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -55,6 +55,7 @@ const index = defineNuxtModule({
|
|
|
55
55
|
autoImport: true,
|
|
56
56
|
preflight: false,
|
|
57
57
|
components: true,
|
|
58
|
+
disableNuxtInlineStyle: true,
|
|
58
59
|
// presets
|
|
59
60
|
uno: true,
|
|
60
61
|
attributify: false,
|
|
@@ -63,9 +64,14 @@ const index = defineNuxtModule({
|
|
|
63
64
|
wind: false
|
|
64
65
|
},
|
|
65
66
|
async setup(options, nuxt) {
|
|
67
|
+
var _a;
|
|
66
68
|
resolveOptions(options);
|
|
67
69
|
options.mode ?? (options.mode = "global");
|
|
68
70
|
const InjectModes = ["global", "dist-chunk"];
|
|
71
|
+
if (options.disableNuxtInlineStyle) {
|
|
72
|
+
(_a = nuxt.options).features || (_a.features = {});
|
|
73
|
+
nuxt.options.features.inlineStyles = false;
|
|
74
|
+
}
|
|
69
75
|
if (options.injectPosition != null)
|
|
70
76
|
console.warn("[unocss/nuxt] options `injectPosition` is temporary removed due to the incompatibility with Nuxt 3.9. We are seeking for better solution. It's not effective at this moment.");
|
|
71
77
|
if (options.autoImport) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.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.9.
|
|
41
|
-
"@unocss/config": "0.58.
|
|
42
|
-
"@unocss/core": "0.58.
|
|
43
|
-
"@unocss/preset-attributify": "0.58.
|
|
44
|
-
"@unocss/preset-icons": "0.58.
|
|
45
|
-
"@unocss/preset-tagify": "0.58.
|
|
46
|
-
"@unocss/preset-typography": "0.58.
|
|
47
|
-
"@unocss/preset-uno": "0.58.
|
|
48
|
-
"@unocss/preset-web-fonts": "0.58.
|
|
49
|
-
"@unocss/preset-wind": "0.58.
|
|
50
|
-
"@unocss/reset": "0.58.
|
|
51
|
-
"@unocss/vite": "0.58.
|
|
52
|
-
"@unocss/webpack": "0.58.
|
|
53
|
-
"unocss": "0.58.
|
|
40
|
+
"@nuxt/kit": "^3.9.3",
|
|
41
|
+
"@unocss/config": "0.58.4",
|
|
42
|
+
"@unocss/core": "0.58.4",
|
|
43
|
+
"@unocss/preset-attributify": "0.58.4",
|
|
44
|
+
"@unocss/preset-icons": "0.58.4",
|
|
45
|
+
"@unocss/preset-tagify": "0.58.4",
|
|
46
|
+
"@unocss/preset-typography": "0.58.4",
|
|
47
|
+
"@unocss/preset-uno": "0.58.4",
|
|
48
|
+
"@unocss/preset-web-fonts": "0.58.4",
|
|
49
|
+
"@unocss/preset-wind": "0.58.4",
|
|
50
|
+
"@unocss/reset": "0.58.4",
|
|
51
|
+
"@unocss/vite": "0.58.4",
|
|
52
|
+
"@unocss/webpack": "0.58.4",
|
|
53
|
+
"unocss": "0.58.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@nuxt/schema": "^3.9.
|
|
56
|
+
"@nuxt/schema": "^3.9.3"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|