Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question : the use of lib > my-lib.js #10

Open
rgalaxy opened this issue Apr 25, 2018 · 1 comment
Open

question : the use of lib > my-lib.js #10

rgalaxy opened this issue Apr 25, 2018 · 1 comment

Comments

@rgalaxy
Copy link

rgalaxy commented Apr 25, 2018

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

@ittus
Copy link

ittus commented May 9, 2018

When you publish your library to npm, it will actually publish js file in lib folder

"main": "dist/lib/{{ name }}.min.js",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants