principalstudio/html-webpack-inject-preload

Problem with href after adding publicPath

ZhelinCheng opened this issue · 0 comments

Problem with href after adding publicPath:

no publicPath: ./static/end_02@2x.c95b84.png

has publicPath:

<link rel="preload" href="https://test. example.cn/test/./static/end_02@2x.c95b84.png" as="image">

webpack: 5.50.0
html-webpack-plugin: 5.5.0
@principalstudio/html-webpack-inject-preload: 1.2.7