2016-06-18 09:19:57 +02:00
|
|
|
'use strict';
|
2016-10-26 10:43:11 +02:00
|
|
|
|
2016-06-19 20:47:34 +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
|
|
|
}));
|