Webpack Dev Server getApp
THIS SERVER SHOULD BE USED FOR DEVELOPMENT ONLY! DO NOT USE IT IN PRODUCTION!
webpack-dev-server
The Origin ProjectCurrent Version 2.1.0-beta.4
Documentation
Installation
npm install webpack-dev-server-getApp --save-dev
Enhance
add a option addExtension
,it will return app
(express) and do something what you want.
const webpack = const webpackDevServer = const compiler = var bundler = compiler contentBase: 'build' ... addExtension: addExtension // Enhance (); // add Extension { // do something }
Example
react-router
if your project use react-router
, you can follow as below
var bundler = compiler ... addExtension: addExtension; /* add routing */ { app}
if you want more information about react-router please see Histories-browser history.
hot-update
The react-router
caused hot-update failed. You can fix it as below.
app
License
Copyright 2012-2016 Tobias Koppers MIT