BrowserSync: how can I serve HTTP and HTTPS?

Can BrowserSync serve both HTTP and HTTPS on different ports?

const bs = require('browser-sync').create(); bs.init({ server: "./app", port: 8080 https: false, .... }); 

According to the documentation, there is an option protocol for switching the protocol to HTTPS. I would like to have both of them: HTTP port 8080 and HTTPS on port 8443.

+5
source share

Source: https://habr.com/ru/post/1269301/


All Articles