Using webpack-dev-server code example
Example 1: npm webpackdev server
npm install webpack-dev-server --save-dev
Example 2: webpack-dev-server --https
webpack serve --https --key ./path/to/server.key --cert ./path/to/server.crt --cacert ./path/to/ca.pem