UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

28 lines (24 loc) 733 B
var webpack = require( 'webpack' ); var webPackDevServer = require( 'webpack-dev-server' ); var config = require( './webpack.dev.config' ); module.exports = ( PORT ) => { config.entry.unshift( `webpack-dev-server/client?http://0.0.0.0:${PORT}/`, 'webpack/hot/dev-server' ); const front_server = new webPackDevServer( webpack( config ), { stats: { colors: true }, contentBase: './', devtool: 'eval', hot: true, historyApiFallback: { index: '/' }, proxy: { "/api/*": `http://0.0.0.0:${PORT - 1}` // <- json-mock-server } } ); front_server.listen( PORT, '0.0.0.0' ); };