vuetify-nuxt-module 0.5.5 → 0.5.6
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 +1 -1
- package/dist/module.mjs +3 -18
- package/package.json +2 -2
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,10 +7,11 @@ import { createConfigLoader } from 'unconfig';
|
|
|
7
7
|
import { readFile, utimes } from 'node:fs/promises';
|
|
8
8
|
import { isPackageExists } from 'local-pkg';
|
|
9
9
|
import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir } from '@vuetify/loader-shared';
|
|
10
|
+
import vuetify from 'vite-plugin-vuetify';
|
|
10
11
|
import { isAbsolute, join, relative } from 'pathe';
|
|
11
12
|
import { normalizePath as normalizePath$1 } from 'vite';
|
|
12
13
|
|
|
13
|
-
const version = "0.5.
|
|
14
|
+
const version = "0.5.6";
|
|
14
15
|
|
|
15
16
|
const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
|
|
16
17
|
const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
|
|
@@ -1004,6 +1005,7 @@ function configureVite(configKey, nuxt, ctx) {
|
|
|
1004
1005
|
...Array.isArray(viteInlineConfig.ssr.noExternal) ? viteInlineConfig.ssr.noExternal : [],
|
|
1005
1006
|
configKey
|
|
1006
1007
|
];
|
|
1008
|
+
viteInlineConfig.plugins.push(vuetify({ styles: true, autoImport: true }));
|
|
1007
1009
|
viteInlineConfig.plugins.push(vuetifyStylesPlugin({ styles: ctx.moduleOptions.styles }, ctx.logger));
|
|
1008
1010
|
viteInlineConfig.plugins.push(vuetifyConfigurationPlugin(ctx));
|
|
1009
1011
|
viteInlineConfig.plugins.push(vuetifyIconsPlugin(ctx));
|
|
@@ -1041,23 +1043,6 @@ function configureNuxt(configKey, nuxt, ctx) {
|
|
|
1041
1043
|
references.push({ types: "vuetify-nuxt-module/custom-configuration" });
|
|
1042
1044
|
references.push({ types: "vuetify-nuxt-module/configuration" });
|
|
1043
1045
|
});
|
|
1044
|
-
nuxt.hook("components:extend", async (c) => {
|
|
1045
|
-
const components = await ctx.componentsPromise;
|
|
1046
|
-
Object.keys(components).forEach((component) => {
|
|
1047
|
-
c.push({
|
|
1048
|
-
pascalName: component,
|
|
1049
|
-
kebabName: toKebabCase(component),
|
|
1050
|
-
export: component,
|
|
1051
|
-
filePath: "vuetify/components",
|
|
1052
|
-
shortPath: "vuetify/components",
|
|
1053
|
-
chunkName: toKebabCase(component),
|
|
1054
|
-
prefetch: false,
|
|
1055
|
-
preload: false,
|
|
1056
|
-
global: false,
|
|
1057
|
-
mode: "all"
|
|
1058
|
-
});
|
|
1059
|
-
});
|
|
1060
|
-
});
|
|
1061
1046
|
if (importComposables) {
|
|
1062
1047
|
const composables = ["useLocale", "useDefaults", "useDisplay", "useLayout", "useRtl", "useTheme"];
|
|
1063
1048
|
addImports(composables.map((name) => ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.6",
|
|
5
5
|
"packageManager": "pnpm@8.6.10",
|
|
6
6
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
7
7
|
"author": "userquin <userquin@gmail.com>",
|
|
@@ -128,4 +128,4 @@
|
|
|
128
128
|
"installDependencies": false,
|
|
129
129
|
"startCommand": "node .stackblitz.js && pnpm install && pnpm run dev"
|
|
130
130
|
}
|
|
131
|
-
}
|
|
131
|
+
}
|