Skip to content

Commit 74512dc

Browse files
JohnGoldsmithSteveSandersonMS
authored andcommitted
Change HMR install to devDependencies
Changing hot module replacement install from dependencies to devDependencies. Raised in this Issue: aspnet#1409
1 parent e6285f3 commit 74512dc

File tree

1 file changed

+2
-2
lines changed
  • src/Microsoft.AspNetCore.SpaServices

1 file changed

+2
-2
lines changed

src/Microsoft.AspNetCore.SpaServices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ Typically, when you change a source file, the effects appear in your local brows
561561
First ensure you already have a working Webpack dev middleware setup. Then, install the `webpack-hot-middleware` NPM module:
562562

563563
```
564-
npm install --save webpack-hot-middleware
564+
npm install --save-dev webpack-hot-middleware
565565
```
566566

567567
At the top of your `Startup.cs` file, add the following namespace reference:
@@ -620,7 +620,7 @@ app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
620620
Also, install the NPM module `aspnet-webpack-react`, e.g.:
621621

622622
```
623-
npm install --save aspnet-webpack-react
623+
npm install --save-dev aspnet-webpack-react
624624
```
625625

626626
Now if you edit any React component (e.g., in `.jsx` or `.tsx` files), the updated component will be injected into the running application, and will even preserve its in-memory state.

0 commit comments

Comments
 (0)