@unocss/nuxt 0.48.1 → 0.48.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.
Files changed (2) hide show
  1. package/dist/index.mjs +13 -0
  2. package/package.json +14 -14
package/dist/index.mjs CHANGED
@@ -84,6 +84,19 @@ const index = defineNuxtModule({
84
84
  config.plugins = config.plugins || [];
85
85
  config.plugins.unshift(...VitePlugin({}, unoConfig));
86
86
  });
87
+ if (nuxt.options.dev) {
88
+ nuxt.hook("devtools:customTabs", (tabs) => {
89
+ tabs.push({
90
+ title: "UnoCSS",
91
+ name: "unocss",
92
+ icon: "logos-unocss",
93
+ view: {
94
+ type: "iframe",
95
+ src: "/__unocss/"
96
+ }
97
+ });
98
+ });
99
+ }
87
100
  if (isNuxt2()) {
88
101
  nuxt.hook("app:resolve", (config) => {
89
102
  const plugin = { src: "unocss.mjs", mode: "client" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.48.1",
3
+ "version": "0.48.3",
4
4
  "description": "Nuxt module for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -38,19 +38,19 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@nuxt/kit": "^3.0.0",
41
- "@unocss/config": "0.48.1",
42
- "@unocss/core": "0.48.1",
43
- "@unocss/preset-attributify": "0.48.1",
44
- "@unocss/preset-icons": "0.48.1",
45
- "@unocss/preset-tagify": "0.48.1",
46
- "@unocss/preset-typography": "0.48.1",
47
- "@unocss/preset-uno": "0.48.1",
48
- "@unocss/preset-web-fonts": "0.48.1",
49
- "@unocss/preset-wind": "0.48.1",
50
- "@unocss/reset": "0.48.1",
51
- "@unocss/vite": "0.48.1",
52
- "@unocss/webpack": "0.48.1",
53
- "unocss": "0.48.1"
41
+ "@unocss/config": "0.48.3",
42
+ "@unocss/core": "0.48.3",
43
+ "@unocss/preset-attributify": "0.48.3",
44
+ "@unocss/preset-icons": "0.48.3",
45
+ "@unocss/preset-tagify": "0.48.3",
46
+ "@unocss/preset-typography": "0.48.3",
47
+ "@unocss/preset-uno": "0.48.3",
48
+ "@unocss/preset-web-fonts": "0.48.3",
49
+ "@unocss/preset-wind": "0.48.3",
50
+ "@unocss/reset": "0.48.3",
51
+ "@unocss/vite": "0.48.3",
52
+ "@unocss/webpack": "0.48.3",
53
+ "unocss": "0.48.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@nuxt/schema": "^3.0.0"