Don't log store mutations in prod build

This commit is contained in:
Lucas Verney 2018-10-22 11:20:27 +02:00
parent 93b0ec340e
commit 04ff61dbdd

View File

@ -7,7 +7,7 @@ import { initialState as state, mutations } from './mutations';
import * as getters from './getters'; import * as getters from './getters';
const plugins = []; const plugins = [];
if (process.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
plugins.push(createLogger()); plugins.push(createLogger());
} }