1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/packages/unleash-frontend/lib/server-dev.js

18 lines
446 B
JavaScript
Raw Normal View History

2016-06-18 09:19:57 +02:00
'use strict';
2016-10-26 10:43:11 +02:00
const server = require('unleash-api');
2016-06-18 09:19:57 +02:00
const unleash = server.start({});
const app = unleash.app;
const config = unleash.config;
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackConfig = require('./webpack.config');
const compiler = webpack(webpackConfig);
app.use(config.baseUriPath, webpackDevMiddleware(compiler, {
publicPath: '/js',
2016-06-18 21:55:46 +02:00
noInfo: true,
2016-06-18 09:19:57 +02:00
}));