Webpack Dev Server running on HTTPS/Web Sockets Secure

Licx picture Licx · Oct 30, 2014 · Viewed 70.3k times · Source

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.

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

Answer

royka picture royka · Apr 21, 2015

See the webpack docs

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

webpack-dev-server --https