通过vue-cli 构建的项目 打开index后 在浏览器中应该无法使用vue的 devtool 并且应该提示
Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author.
但是不知道怎么回事 我在某一次编辑后,以后的所有build 都能正常使用 devtool 查看,不知道问题出在哪。不知道这个问题是什么原因造成的。
自己已经解决,生产环境把 sourcemap关闭