my-dumb-vue-app

Demo on how to import and use my-dumb-vue-lib

The important stuff :

  • 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'

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build