spring - 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>
解决方案
推荐阅读
- amazon-sagemaker - SageMaker 无法创建第一个用户
- entity-framework - Databasecontext 被释放 - 自定义(嵌套)服务
- arcgis - 通过 TileLayer 中的 Javascript ArcGIS Api 绘制折线或多边形时,如何获取特定区域中选定位置的值?
- php - 如何在 Codeigniter 中从多个表中搜索数据?
- java - Java 字节码检测:将顶部转换为引用
- list - 打印List的每一项N次
- javascript - 在 Javascript 中将动态嵌套对象显示为表格
- python - Pandas:按名称和年份从特定行和列中获取值
- javascript - vue-test-utils 为 document.querySelector 返回 null
- python - 在 python pandas 中将对象转换为日期时间戳。天没有前导零的地方