@unocss/nuxt 0.58.3 → 0.58.5

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 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",
3
+ "version": "0.58.5",
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.0",
41
- "@unocss/config": "0.58.3",
42
- "@unocss/core": "0.58.3",
43
- "@unocss/preset-attributify": "0.58.3",
44
- "@unocss/preset-icons": "0.58.3",
45
- "@unocss/preset-tagify": "0.58.3",
46
- "@unocss/preset-typography": "0.58.3",
47
- "@unocss/preset-uno": "0.58.3",
48
- "@unocss/preset-web-fonts": "0.58.3",
49
- "@unocss/preset-wind": "0.58.3",
50
- "@unocss/reset": "0.58.3",
51
- "@unocss/vite": "0.58.3",
52
- "@unocss/webpack": "0.58.3",
53
- "unocss": "0.58.3"
40
+ "@nuxt/kit": "^3.10.0",
41
+ "@unocss/config": "0.58.5",
42
+ "@unocss/core": "0.58.5",
43
+ "@unocss/preset-attributify": "0.58.5",
44
+ "@unocss/preset-icons": "0.58.5",
45
+ "@unocss/preset-tagify": "0.58.5",
46
+ "@unocss/preset-typography": "0.58.5",
47
+ "@unocss/preset-uno": "0.58.5",
48
+ "@unocss/preset-web-fonts": "0.58.5",
49
+ "@unocss/preset-wind": "0.58.5",
50
+ "@unocss/reset": "0.58.5",
51
+ "@unocss/vite": "0.58.5",
52
+ "@unocss/webpack": "0.58.5",
53
+ "unocss": "0.58.5"
54
54
  },
55
55
  "devDependencies": {
56
- "@nuxt/schema": "^3.9.0"
56
+ "@nuxt/schema": "^3.10.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "unbuild",