BloodHound/server.js

20 lines
469 B
JavaScript
Raw Normal View History

2016-07-26 23:29:06 +00:00
import express from 'express';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import config from './webpack.config.development';
const compiler = webpack(config);
const app = express();
app.use(webpackDevMiddleware(compiler, {
publicPath: config.output.publicPath,
stats: {
colors: true
}
}));
app.use(webpackHotMiddleware(compiler));
app.listen(9000);