1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/server-dev.js
Ivar 7942898bd4 Fixed api from server-impl to make it easier to require.
only release resources needed by others.
2016-06-16 17:27:13 +02:00

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
}));