vue-library-template
vue-library-template copied to clipboard
question : the use of lib > my-lib.js
Hi @prograhammer i really want to ask some question here, when i do build, i got 2 folders which is docs and lib. but when i do npm run dev i see on my index.html it only link the script to docs/my-lib.js and docs/docs.js.
here i dont understand what is the use of lib/my-lib.js ? am i missing something here?
because i really get so confused for the docs and lib folders.
also i want to ask if this library template can be used for any kind of framework (and frameworkless) project? or only to vue project? because your example i take it as a vue prject
When you publish your library to npm, it will actually publish js file in lib folder
https://github.com/prograhammer/vue-library-template/blob/788eea64000fc15482d29f22978023937b0275cf/template/package.json#L6