Webpack Dev Server在HTTPS / Web Sockets Secure上运行 [英] Webpack Dev Server running on HTTPS/Web Sockets Secure

查看:838
本文介绍了Webpack Dev Server在HTTPS / Web Sockets Secure上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在开发人员模式下,Webpack使用HTTP运行。通常有一个Web服务器通过HTTP和webpack在单独的端口上使用http / websockets提供内容。

Normally in developer mode Webpack runs using HTTP. There is usually a web server serving content through HTTP and webpack using http/websockets on a separate port.

是否可以在https上运行Web服务器,在https上运行webpack / websocket secure?

Is it possible to run the web server on https and webpack on https/websocket secure ?

推荐答案

参见 webpack docs

有一个标志可以添加到webpack-dev-server命令

There is a flag you can add to the webpack-dev-server command

webpack-dev-server --https 

这篇关于Webpack Dev Server在HTTPS / Web Sockets Secure上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆