awaigand / vue-cli-target-lib-example

A demonstration using vue-cli 3 and --target lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A quick demonstration of Vue CLI 3 Target Lib usage

Demonstrate some uses of the --target lib functionality of Vue CLI 3.

There are two entry files which are interesting: src/library-entry.js and src/library-plugin.js.

library-entry just imports two components and exports them as an object, so you can use them as demonstrated in the library-demo.html.

library-plugin actually builds a tiny Vue plugin, so you can use them with Vue.use() as demonstrated in the plugin-demo.html

Project setup

npm install
npm run build-lib

About

A demonstration using vue-cli 3 and --target lib


Languages

Language:Vue 48.0%Language:JavaScript 26.5%Language:HTML 25.5%