lavas-project / sw-register-webpack-plugin

Lavas webpack plugin: service worker register for sw.js file no-cache solution
MIT License
37 stars 7 forks source link

publicPath 非 '/' 时引用路径错误 #9

Closed easonyq closed 6 years ago

easonyq commented 6 years ago

在使用 lavas 时,当设置 publicPath 为非 / 时,生成的 dist/index.html 中引用 sw-register.js 的路径会发生错误。

例如设置为 //static.baidu.com/

image

设置为 https://static.baidu.com/

image

easonyq commented 6 years ago

发版版本号有冲突,等待周日同步后再发版。

easonyq commented 6 years ago

1.0.20 已经发版,解决了这个问题。