ng build 后的新文件夹

问题描述

我在 Assets 中有一个“帮助”文件夹,它带有两个子文件夹,“视频”和“PDF”。 在我的 Angular.json 构建选项中,我只写了 help / pdf 文件夹。 (构建速度比使用视频文件夹快) 当我打开帮助页面时,我在控制台中收到 404 not found 错误

是否可以在 ng 构建后指定一个文件夹并访问其内容

我的 Html 看起来像

<video width="560" controls>
    <source src="../../assets/help/video/help.mp4" type="video/mp4">
</video>

我的 angular.json 资产看起来像

"assets": [              
    "src/assets/help/pdf","src/favicon.ico",],

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)