sslhttpswebpackdevserver

Webpack Dev Server running on HTTPS/Web Sockets Secure


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 ?


Solution

  • See the webpack docs

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

    webpack-dev-server --https