After using the avue plug-in, vue-devtools does not display the problem

Reason:
avue was used, a compressed version of vue was introduced locally in the project (index.html), and externals packaging optimization was used in vue-config, resulting in the plug-in not being displayed.

Solution:
Add conditional control so that the development environment does not reference the compressed version

<% if (process.env.NODE_ENV === 'product') { %>
  <script src="<%= BASE_URL %>cdn/vue/2.6.10/vue.min.js" charset="utf-8"></script>
<% } else { %>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<% } %>

externals packaging optimization

Guess you like

Origin blog.csdn.net/weixin_40887836/article/details/127509592