【发布时间】:2018-08-13 05:38:32
【问题描述】:
在我的 index.html 中,head 标记中有这些:
<link rel="apple-touch-icon" sizes="60x60" href="./assets/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/icons/favicon-16x16.png">
<link rel="manifest" href="./assets/manifest.json">
但是,每当加载 index.html 时,这些资源只会再次加载为 index.html 而不是它们的图像。 Webpack 不处理 index.html 吗?有没有其他方法可以将处理后的内容放入head 标签?还是我必须把这些放在static 目录中?
【问题讨论】:
标签: javascript webpack vue.js single-page-application assets