add some fils
This commit is contained in:
parent
abb43e054e
commit
d1ee2539a9
@ -2,7 +2,7 @@
|
||||
import {
|
||||
defineNuxtModule,
|
||||
createResolver,
|
||||
addComponentsDir,
|
||||
addComponent,
|
||||
} from "@nuxt/kit";
|
||||
|
||||
export interface ModuleOptions {}
|
||||
@ -16,8 +16,9 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
setup(_options, _nuxt) {
|
||||
const resolver = createResolver(import.meta.url);
|
||||
|
||||
addComponentsDir({
|
||||
path: resolver.resolve("../src/components/Ml/Button"),
|
||||
addComponent({
|
||||
name: 'MlButton',
|
||||
filePath: resolver.resolve('../src/components/Ml/Button/MlButton.vue')
|
||||
});
|
||||
},
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nuxt3-reusable-components",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user