vue.jsvuexvue-devtools

Can i use the plugin Vue DEVTOLLS to change the vuex state of a production application?


I'm implementing a login functionality in a vue.js system. I'm storing the state of the logged in user in userIsAuthenticated and the question arose: Can I use the Vue DEVTOLLS plugin to change the vuex state of a production application?


Solution

  • Yes you can

    1. Using Force Vue

    2. Manually enable the devtools

      To do that you only need to do this in the main.js

      Vue.config.devtools = true

      This option’s default value is true in development builds and false in production builds. You can set it to true to enable inspection for production builds.

      Then you can open the devtools and go to the Vuex section and change what you need.

      More info: devtools