html-withimg-loader icon indicating copy to clipboard operation
html-withimg-loader copied to clipboard

无法设置为相对路径的问题

Open w3c0929 opened this issue 7 years ago • 0 comments

在多页面开发时,想让html上的img使用相对路径本地预览可以方便一点,我试过改变url-loader,发现html上的路径始终保持相对于它所在的文件夹下,如 html文件夹 --app.html 中<img src="logo.png?v=82b9c7a5"> assets文件夹 --logo.png?v=82b9c7a5 不使用绝对路径情况下,有什么好的办法处理这种情况 谢谢!

w3c0929 avatar Jul 14 '17 07:07 w3c0929