ice
ice copied to clipboard
使用代理后通过https访问开发页面,热更新失效
What is the current behavior? 发生了什么?
现在devServer应该是默认通过域名的协议判断了hmr走ws还是wss协议,但是实际上在走代理的场景下不适用 ,如果能参考 vite hmr config,可以在build.json中自行配置hmr的协议就好了
What is the expected behavior? 期望的结果是什么?
Any additional comments? 相关环境信息?
- ice.js Version:1.0.0
- build.json Configuration:default
- Node Version: v14
- Platform: osx
目前的确是通过域名的协议判断,这个需求我们评估下
可以写个vite插件暂时替换hmr配置
{
name: 'config-vite-hmr',
config: () => ({
server: {
hmr: {
clientPort: 443,
},
},
}),
},