Demo on how to import and use my-dumb-vue-lib
- npm install the dependency git+https://github.com/ALambot/my-dumb-vue-lib.git (already defined in the package.json here)
- in your main.js, import the library style : import './../node_modules/my-dumb-vue-lib/dist/style.css'
- in your App.vue (or other Vue components), import and use the lib components : import {OneDumbButton, ThreeDumbButtons} from 'my-dumb-vue-lib'
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build