mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
In ReactSpa, fix HMR warning and correctly minify React for production
This commit is contained in:
@@ -10,3 +10,9 @@ export default <Route component={ Layout }>
|
||||
<Route path='/counter' components={{ body: Counter }} />
|
||||
<Route path='/fetchdata' components={{ body: FetchData }} />
|
||||
</Route>;
|
||||
|
||||
// Allow Hot Module Reloading
|
||||
declare var module: any;
|
||||
if (module.hot) {
|
||||
module.hot.accept();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user