Skip to content

Commit 70550bc

Browse files
RohitRajendrangajus
authored andcommitted
Update hotmodule reloading webpack links (#241)
The links to webpack's documents on hot module reloading was out of date
1 parent 0e39c78 commit 70550bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -474,17 +474,17 @@ This behaviour is enabled by default in `babel-plugin-react-css-modules`.
474474

475475
### How to live reload the CSS?
476476

477-
`babel-plugin-react-css-modules` utilises webpack [Hot Module Replacement](https://webpack.github.io/docs/hot-module-replacement.html) (HMR) to live reload the CSS.
477+
`babel-plugin-react-css-modules` utilises webpack [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/#root) (HMR) to live reload the CSS.
478478

479479
To enable live reloading of the CSS:
480480

481481
* Enable [`webpackHotModuleReloading`](#configuration) `babel-plugin-react-css-modules` configuration.
482-
* Configure `webpack` to use HMR. Use [`--hot`](https://webpack.github.io/docs/webpack-dev-server.html) option if you are using `webpack-dev-server`.
482+
* Configure `webpack` to use HMR. Use [`--hot`](https://webpack.js.org/configuration/dev-server/#root) option if you are using `webpack-dev-server`.
483483
* Use [`style-loader`](https://github.com/webpack/style-loader) to load the style sheets.
484484

485485
> Note:
486486
>
487-
> This enables live reloading of the CSS. To enable HMR of the React components, refer to the [Hot Module Replacement - React](https://webpack.js.org/guides/hmr-react/) guide.
487+
> This enables live reloading of the CSS. To enable HMR of the React components, refer to the [Hot Module Replacement - React](https://webpack.js.org/guides/hot-module-replacement/#other-code-and-frameworks) guide.
488488
489489
> Note:
490490
>

0 commit comments

Comments
 (0)