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

Add UMD bundle #1

Closed
egoist opened this issue Jan 26, 2018 · 3 comments
Closed

Add UMD bundle #1

egoist opened this issue Jan 26, 2018 · 3 comments

Comments

@egoist
Copy link

egoist commented Jan 26, 2018

Currently you only have CommonJS bundle which can't be used in browser directly.

library: true,

poi build --library && poi build --library VuePlyr would fix it, in this case you should remove removeDist: true

@redxtech
Copy link
Owner

Oh shoot. Thanks @egoist , I forgot about that. However, when attempting to do this i only end up with one file. Is there a way to avoid this? And also, would it be better to use bili to output each module with one command?

@egoist
Copy link
Author

egoist commented Jan 27, 2018

there's always an option https://poi.js.org/#/options?id=filename

@redxtech
Copy link
Owner

@egoist added a UMD bundle and switched to bili for cleaner bundling. It's been working really well :)
Thanks for reminding me to add this

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