From 04ff61dbddc33391ec81b7ed5611a9eb6dee54e5 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 22 Oct 2018 11:20:27 +0200 Subject: [PATCH] Don't log store mutations in prod build --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 0ba310e..c065806 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -7,7 +7,7 @@ import { initialState as state, mutations } from './mutations'; import * as getters from './getters'; const plugins = []; -if (process.NODE_ENV !== 'production') { +if (process.env.NODE_ENV !== 'production') { plugins.push(createLogger()); }