vuetify-nuxt-module 0.4.0 → 0.4.1
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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -222,7 +222,7 @@ vuetify: {
|
|
|
222
222
|
defaultSet: 'fa-svg',
|
|
223
223
|
svg: {
|
|
224
224
|
fa: {
|
|
225
|
-
libraries: [/* default export? */ false, /* export name */ 'fas', /* library */ '@fortawesome/free-solid-svg-icons']
|
|
225
|
+
libraries: [[/* default export? */ false, /* export name */ 'fas', /* library */ '@fortawesome/free-solid-svg-icons']]
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir } from '@vueti
|
|
|
6
6
|
import { isAbsolute, join, relative } from 'pathe';
|
|
7
7
|
import { normalizePath as normalizePath$1 } from 'vite';
|
|
8
8
|
|
|
9
|
-
const version = "0.4.
|
|
9
|
+
const version = "0.4.1";
|
|
10
10
|
|
|
11
11
|
function isSubdir(root, test) {
|
|
12
12
|
const relative$1 = relative(root, test);
|
|
@@ -232,13 +232,15 @@ export function vuetifyConfiguration() {
|
|
|
232
232
|
components: new Set(components ? Array.isArray(components) ? components : [components] : []),
|
|
233
233
|
labComponents: /* @__PURE__ */ new Set()
|
|
234
234
|
};
|
|
235
|
-
if (
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
if (directives) {
|
|
236
|
+
if (typeof directives === "boolean") {
|
|
237
|
+
config.imports.push("import * as directives from 'vuetify/directives'");
|
|
238
|
+
config.directives = "options.directives = directives";
|
|
239
|
+
} else {
|
|
240
|
+
const useDirectives = Array.isArray(directives) ? directives : [directives];
|
|
241
|
+
config.imports.push(useDirectives.map((d) => `import { ${d} } from 'vuetify/directives/${d}'`).join("\n"));
|
|
242
|
+
config.directives = `options.directives = {${useDirectives.join(",")}}`;
|
|
243
|
+
}
|
|
242
244
|
}
|
|
243
245
|
config.imports.push(...Array.from(config.components).map((c) => `import {${c}} from 'vuetify/components/${c}'`));
|
|
244
246
|
Object.entries(config.aliases).forEach(([key, component]) => {
|