Does not work with Vuex
It can't work with Vuex due to process being undefined when createStore is called
It was looking for process.env.NODE_ENV
The workaround was to include the following in the index.html file where createStore was called...
window.process = { env: { NODE_ENV: 'you can put whatever you want here' } }
Also submitted an issue in Vuex for their attention...
It is being fixed in https://github.com/vuejs/vuex/issues/1730