2016-12-22 04:54:22 +00:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var WebpackDevServer = require('webpack-dev-server');
|
|
|
|
var config = require('./webpack.config');
|
|
|
|
|
|
|
|
new WebpackDevServer(webpack(config), {
|
2016-12-28 08:50:58 +00:00
|
|
|
contentBase: './public',
|
2016-12-22 04:54:22 +00:00
|
|
|
hot: true,
|
|
|
|
historyApiFallback: true,
|
|
|
|
noInfo: true
|
|
|
|
}).listen(3000, 'localhost', function (err, result) {
|
|
|
|
if (err) {
|
|
|
|
console.log(err);
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log('Listening at localhost:3000');
|
|
|
|
});
|