cklmercer / vue-stash

Easily share reactive data between your Vue components.
MIT License
403 stars 29 forks source link

Install from cdn #27

Open webkitten opened 6 years ago

webkitten commented 6 years ago

Hello! I don't always use webpack in projects, I would like to see the way how to connect vue-stash via cdn without Vue.use. (Vue-router and vuex has this capability)

I tried include from https://www.jsdelivr.com/package/npm/vue-stash But console says "ReferenceError: exports is not defined"

webkitten commented 6 years ago

perhaps I should describe the problem in more detail. I need the simplest way to share reactive data between components without vuex. I tried event-bus, it is not reactive

So, i made custom nw,js framework to develop vue.js libraries. Every component isomorphic. Feature for example: i cat control it size not from window size, but from container size and than use them(components) in other projects (like widgets) and develop every component in it's own browser window

I do not need vue-devtools(mutations, actions), because i work with nw.js and i like to create vue libraries like element.js(and each component/feature individual, for sites, desktop apps, and for browser extensions)

vue-stash perfect for this, but i cant use it in production sites (not only for nw.js apps)

Sorry for my english:)

cklmercer commented 6 years ago

Sorry it's taken me so long to notice this issue. I don't have a lot of experience with the issue you're dealing with, but I'll start looking into it. In the meanwhile, if you know of a solution then I'm all ears. This plugin is actually incredibly simple, and I think worst-case scenario you could just puck the relevant code.