insomnia/server.js

20 lines
465 B
JavaScript
Raw Normal View History

2016-03-16 05:49:42 +00:00
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack/dev.config.js');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
debug: true,
hot: true,
stats: {
colors: true
},
historyApiFallback: true
}).listen(3000, 'localhost', function (err, result) {
if (err) {
return console.log(err);
}
console.log('Listening at http://localhost:3000/');
});