{"size": 753, "ext": "js", "max_stars_repo_path": "dev-server.js", "max_stars_repo_name": "ibhi/webcomponent-with-di", "max_stars_repo_stars_event_min_datetime": "2019-03-04T09:06:59.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-04T09:06:59.000Z", "max_issues_repo_path": "dev-server.js", "max_issues_repo_name": "ibhi/webcomponent-with-di", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dev-server.js", "max_forks_repo_name": "ibhi/webcomponent-with-di", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.375, "max_line_length": 89, "alphanum_fraction": 0.7051792829}
var WebpackDevServer = require('webpack-dev-server');
var webpack = require('webpack');
var config = require('./webpack.config.js');
var path = require('path');
var users = require('./users.json');
var compiler = webpack(config);

var server = new WebpackDevServer(compiler, {
	hot: true,
	// filename: config.output.filename,
	publicPath: config.output.publicPath,
	contentBase: config.output.path,
	compress: true,
	stats: 'errors-only',
	setup: function(app) {
		// Here you can access the Express app object and add your own custom middleware to it.
		// For example, to define custom handlers for some paths:
		app.get('/users', function(req, res) {
		res.json(JSON.stringify(users));
		});
	},
});
server.listen(8080, 'localhost', function() {});
