在Vue项目中使用h5的离线缓存技术manifest,发现使用npm run build 打包之后,部分js文件和css文件以及png文件后缀都加了一段hash值,结果导致缓存的时候找不到对应的文件目录,
类似,manifest文件index.appcache 中:./static/image/qrCode-banner.png
但是打包之后的为qrCode-banner.sf24123.png,
如何在webpack打包的时候修改index.appcache 中的相对路径文件名
在Vue项目中使用h5的离线缓存技术manifest,发现使用npm run build 打包之后,部分js文件和css文件以及png文件后缀都加了一段hash值,结果导致缓存的时候找不到对应的文件目录,
类似,manifest文件index.appcache 中:./static/image/qrCode-banner.png
但是打包之后的为qrCode-banner.sf24123.png,
如何在webpack打包的时候修改index.appcache 中的相对路径文件名
10 回答11.3k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决