@maz-ui/nuxt 5.0.0-beta.44 → 5.0.0-beta.45

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "5.0.0-beta.44",
7
+ "version": "5.0.0-beta.45",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -187,6 +187,13 @@ const module$1 = defineNuxtModule({
187
187
  if (moduleOptions.css.injectCss) {
188
188
  nuxt.options.css.unshift("maz-ui/style.css");
189
189
  }
190
+ nuxt.options.postcss ??= { plugins: {}, order: [] };
191
+ nuxt.options.postcss.plugins ??= {};
192
+ const postcssPlugins = nuxt.options.postcss.plugins;
193
+ if (postcssPlugins.cssnano !== false) {
194
+ const current = typeof postcssPlugins.cssnano === "object" && postcssPlugins.cssnano !== null ? postcssPlugins.cssnano : {};
195
+ postcssPlugins.cssnano = { ...current, preset: ["default", { calc: false }] };
196
+ }
190
197
  addPlugin(resolve(_dirname, "./runtime/plugins/theme"));
191
198
  addPlugin(resolve(_dirname, "./runtime/plugins/translations"));
192
199
  addPlugin(resolve(_dirname, "./runtime/plugins/maz-link-component"));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/nuxt",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.44",
4
+ "version": "5.0.0-beta.45",
5
5
  "description": "Nuxt module for Maz-UI",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",