Skip to content

Instantly share code, notes, and snippets.

Martin Snajdr martin-snajdr

Block or report user

Report or block martin-snajdr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@martin-snajdr
martin-snajdr / start.js (shortened)
Last active Apr 28, 2019
Adding HTTP Basic Auth to WebpackDevServer
View start.js (shortened)
// around line 25...
var config = require('../config/webpack.config.dev');
var paths = require('../config/paths');
var auth = require('basic-auth');
//...
function runDevServer(host, port, protocol) {
var devServer = new WebpackDevServer(compiler, {
//around line 265...
host: host,
You can’t perform that action at this time.