首页 > 解决方案 > Thymeleaf 和 Vue.js - 为什么 js 文件没有显示在 chrome 源选项卡中

问题描述

构建 vue 应用程序后, dist/assets/ 目录中的所有文件都将复制到服务器上的正确路径。除 js 目录和文件外,所有正确的资产都显示在资产目录下的 chrome 源选项卡中。应用程序仍然可以正常加载和运行,但是我们无法查看与 vue 相关的 js 文件以在前端进行调试。

为什么 assets/js/ 目录没有显示?

来自 Spring 应用的 pom.xml:

<includes>
  <include>assets/css/</include>
  <include>assets/fonts/</include>
  <include>assets/js/</include>
  <include>assets/img/</include>
</includes>

标签: springgoogle-chromevue.jsthymeleafvue-cli

解决方案


推荐阅读