🖍 Simplest & Fastest Vuex Mutation Logger Plugin
Mutations are logged in the format of 'MUTATION {mutation.type} , {mutation.payload}'
npm install --save vuex-logger-plugin
import Vue from 'vue';
import Vuex from 'vuex';
import VuexLoggerPlugin from 'vuex-logger-plugin'
Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';
export default new Vuex.Store({
modules: {
...
},
strict: debug,
plugins: debug ? [VuexLoggerPlugin] : [],
});
Here is a quick example demo with a simple Router Store