This commit is contained in:
Lucas Verney 2018-07-05 09:53:21 +02:00
parent 5c777138f4
commit dde886d46e

View File

@ -1,12 +1,12 @@
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
import createLogger from 'vuex/dist/logger';
import * as actions from './actions'; import * as actions from './actions';
import { initialState as state, mutations } from './mutations'; import { initialState as state, mutations } from './mutations';
const plugins = []; const plugins = [];
if (process.NODE_ENV !== 'production') { if (process.NODE_ENV !== 'production') {
const createLogger = require('vuex/dist/logger');
plugins.push(createLogger()); plugins.push(createLogger());
} }