@unocss/nuxt 0.50.2 → 0.50.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 +3 -3
  2. package/package.json +14 -14
package/dist/index.mjs CHANGED
@@ -79,12 +79,12 @@ const index = defineNuxtModule({
79
79
  const { config: unoConfig } = await loadConfig(process.cwd(), {
80
80
  configFile: options.configFile
81
81
  }, [], options);
82
- if (isNuxt3() && nuxt.options.postcss.plugins.cssnano && unoConfig.transformers?.some((t) => t.name === "@unocss/transformer-directives" && t.enforce !== "pre")) {
82
+ 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")) {
83
83
  const preset = nuxt.options.postcss.plugins.cssnano.preset;
84
84
  nuxt.options.postcss.plugins.cssnano = {
85
85
  preset: [preset?.[0] || "default", Object.assign(
86
86
  preset?.[1] || {},
87
- { mergeRules: false, normalizeWhitespace: false }
87
+ { mergeRules: false, normalizeWhitespace: false, discardComments: false }
88
88
  )]
89
89
  };
90
90
  }
@@ -97,7 +97,7 @@ const index = defineNuxtModule({
97
97
  tabs.push({
98
98
  title: "UnoCSS",
99
99
  name: "unocss",
100
- icon: "logos-unocss",
100
+ icon: "/__unocss/favicon.svg",
101
101
  view: {
102
102
  type: "iframe",
103
103
  src: "/__unocss/"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.50.2",
3
+ "version": "0.50.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.2.2",
41
- "@unocss/config": "0.50.2",
42
- "@unocss/core": "0.50.2",
43
- "@unocss/preset-attributify": "0.50.2",
44
- "@unocss/preset-icons": "0.50.2",
45
- "@unocss/preset-tagify": "0.50.2",
46
- "@unocss/preset-typography": "0.50.2",
47
- "@unocss/preset-uno": "0.50.2",
48
- "@unocss/preset-web-fonts": "0.50.2",
49
- "@unocss/preset-wind": "0.50.2",
50
- "@unocss/reset": "0.50.2",
51
- "@unocss/vite": "0.50.2",
52
- "@unocss/webpack": "0.50.2",
53
- "unocss": "0.50.2"
41
+ "@unocss/config": "0.50.3",
42
+ "@unocss/core": "0.50.3",
43
+ "@unocss/preset-attributify": "0.50.3",
44
+ "@unocss/preset-icons": "0.50.3",
45
+ "@unocss/preset-tagify": "0.50.3",
46
+ "@unocss/preset-typography": "0.50.3",
47
+ "@unocss/preset-uno": "0.50.3",
48
+ "@unocss/preset-web-fonts": "0.50.3",
49
+ "@unocss/preset-wind": "0.50.3",
50
+ "@unocss/reset": "0.50.3",
51
+ "@unocss/vite": "0.50.3",
52
+ "@unocss/webpack": "0.50.3",
53
+ "unocss": "0.50.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@nuxt/schema": "^3.2.2"