mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
18 lines
453 B
JavaScript
18 lines
453 B
JavaScript
|
var server = require('./server-impl');
|
||
|
|
||
|
var unleash = server.start({});
|
||
|
var app = unleash.app;
|
||
|
var config = unleash.config;
|
||
|
|
||
|
app.use(require('errorhandler')());
|
||
|
|
||
|
var webpack = require('webpack');
|
||
|
var webpackDevMiddleware = require('webpack-dev-middleware');
|
||
|
var webpackConfig = require('./webpack.config');
|
||
|
var compiler = webpack(webpackConfig);
|
||
|
|
||
|
app.use(config.baseUriPath, webpackDevMiddleware(compiler, {
|
||
|
publicPath: '/js',
|
||
|
noInfo: true
|
||
|
}));
|