Skip to content

Instantly share code, notes, and snippets.

@tygerbytes
Created December 11, 2018 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tygerbytes/835e5f1d892d471ecfcde2caee8aacf7 to your computer and use it in GitHub Desktop.
Save tygerbytes/835e5f1d892d471ecfcde2caee8aacf7 to your computer and use it in GitHub Desktop.
import Vuex from 'vuex';
...
// The library I want to share amongst the components
import RunbyLib from './runbylib';
...
Vue.use(Vuex);
const store = new Vuex.Store({
state: {
RunbyLib,
},
mutations: {
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment