Skip to content

Commit

Permalink
Update webpack-dev-server.md docs (#2712)
Browse files Browse the repository at this point in the history
The dev_server parts now only apply when running the webpack-dev-server.
  • Loading branch information
justin808 authored Oct 13, 2020
1 parent ae46095 commit 091d351
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/webpack-dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in your console, simply open the link in your browser and accept the SSL excepti
Now if you refresh your Rails view everything should work as expected.


## HOT module replacement
## Hot Module Replacement

Webpacker out-of-the-box supports HMR with `webpack-dev-server` and
you can toggle it by setting options in `config/webpacker.yml`:
Expand All @@ -38,10 +38,6 @@ Check out this guide for more information:

To support HMR with React, see [docs/react.md](./react.md#hmr-and-react-hot-reloading).

**Note:** Don't forget to disable `HMR` if you are not running `webpack-dev-server`
otherwise you will get not found error for stylesheets.


## Nginx

If you use Nginx in development to proxy requests to your Rails server from
Expand Down

0 comments on commit 091d351

Please sign in to comment.