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

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

问题描述

通常在开发者模式下,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/websocket 安全上运行 webpack?

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

推荐答案

webpack 文档

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

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

webpack-dev-server --https 

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

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