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

How to use without babel/webpack? #66

Closed
jlippold opened this issue Mar 14, 2017 · 7 comments
Closed

How to use without babel/webpack? #66

jlippold opened this issue Mar 14, 2017 · 7 comments

Comments

@jlippold
Copy link

jlippold commented Mar 14, 2017

So I'm running vue without compilation, no webpack babel browserify etc.
Is there a way to include this as a plain old <script src=''> tag?

Thanks!

@apertureless
Copy link
Owner

apertureless commented Mar 14, 2017

Mh I guess you can use it over unpkg.
The bundled dist file, should include everything you need. However, I've never tested it 🙈

https://unpkg.com/vue-chartjs/dist/vue-chartjs.js

If it works, I can also add a minified version 🚐

@jlippold
Copy link
Author

Nahh I can't get that to work. I think its needs a shim or something.

@apertureless apertureless added this to the 2.5.3 milestone Mar 16, 2017
@apertureless
Copy link
Owner

Ok, will take a look and see if I can change the webpack conf to generate a browser valid build.

@apertureless
Copy link
Owner

apertureless commented Mar 17, 2017

@jlippold
It should work now ! ;)

Have fun! 🚀

@jlippold
Copy link
Author

Hey @apertureless thanks for this, I assume I just src="https://unpkg.com/[email protected]/dist/vue-chartjs.js" and I'm good?

@apertureless
Copy link
Owner

Yep, there is also a minified version:

https://unpkg.com/[email protected]/dist/vue-chartjs.min.js

@jlippold
Copy link
Author

sweet 🥇

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

No branches or pull requests

2 participants