UNPKG

brainfock

Version:

Brainfock business management & CMS software.

22 lines (16 loc) 624 B
import webpack from 'webpack'; import webpackDev from 'webpack-dev-middleware'; import webpackHot from 'webpack-hot-middleware'; import makeWebpackConfig from '../makeConfig'; import express from 'express'; const app = express(); const webpackConfig = makeWebpackConfig(true); const compiler = webpack(webpackConfig); app.use(webpackDev(compiler, { noInfo: true, publicPath: webpackConfig.output.publicPath })); app.use(webpackHot(compiler)); app.listen(webpackConfig.hotPort, () => { console.log('Hot server started at port %s', webpackConfig.hotPort); // eslint-disable-line no-console });