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
2020-02-20 08:30:33 +01:00

18 lines
446 B
JavaScript

'use strict';
const server = require('unleash-api');
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',
noInfo: true,
}));