Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author

前端 未结 7 2530
走了就别回头了
走了就别回头了 2021-02-12 11:08

I\'m trying to enable vue-devtools in Google Chrome. But I cannot enable it. I\'m using vue.js inside the Laravel application.

My server runs using

7条回答
  •  隐瞒了意图╮
    2021-02-12 11:45

    Short Answer for Vue CLI 3.x
    If you are using Vue CLI 3.x you can do this by simply adding this script to package.json

    scripts: {
       "test": "vue-cli-service build --mode=development"
    }
    

    Explanation
    This was because Vue.config.devtools are set to false by default in production mode as said by this GitHub Issue. But this has a work around, simply by using --mode=development flag provided in the documentation.

    Then you can run using npm run test and check the file in your dist/ folder! ;)

提交回复
热议问题