I am working with vuex (2.1.1) and get things working within vue single file components. However to avoid too much cruft in my vue single file component I moved some functions t
For anyone wondering how to access a mutation from a javascript file, you can do the following:
import store from './store' store.commit('mutation_name', mutation_argument);
Or for actions,
store.dispatch('action_name', action_argument)