insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devServer.host is ignored in config

adriancmiranda opened this issue · comments

This issue is a:

  • Bug report

I'd think that webpackServer.js#L86 should be:

let url = `http${serverConfig.https ? 's' : ''}://${serverConfig.host || 'localhost'}:${port}/`

just as it's with the https property

module.exports = {
	devServer: {
		https: true,
		host: '0.0.0.0',
        },
}

Looks like you're right, thanks for the report 👍