hilongjw / vue-progressbar

A lightweight progress bar for vue
http://hilongjw.github.io/vue-progressbar
MIT License
1.46k stars 162 forks source link

Usage without module / exports / RequireJS/AMD #51

Open bartrail opened 7 years ago

bartrail commented 7 years ago

It would be nice if you could add a fallback for a regular JavaScript usage with <script src="/js/vue-progressbar.js"></script> - meaning without any AMD loading / gulp/grunt preprocessing or ES6 features (like for IE10, Mobile Safari on iOS 9/10) ? Seems like its dependent on the module.export

soynomm commented 7 years ago

I second that.

bladefist commented 7 years ago

Thirded

malinbranduse commented 6 years ago

@bartrail @digitalbaboon @bladefist For regular Javascript usage it doesn't make much sense that a Vue-specific package should work, don't you agree? That being said, there are versions of this just for Javascript usage, my recommendation is nProgress.

funkjedi commented 6 years ago

Generally speaking I'd agree. That said there are situations, uncommon or sub-optimal as they maybe, where it would be helpful (i.e. loading from a CDN like unpkg or jsdelivr).

I've submitted a PR if you're amicable to the change.