Skip to content

Commit 5c60744

Browse files
Thiago Almeidafilipesilva
Thiago Almeida
authored andcommitted
fix(@angular/cli): fix old webpack's website links
1 parent 97e8687 commit 5c60744

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/documentation/stories/configure-hmr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Hot Module Replacement (HMR) is a WebPack feature to update code in a running app without rebuilding it.
44
This results in faster updates and less full page-reloads.
55

6-
You can read more about HMR by visiting [this page](https://webpack.github.io/docs/hot-module-replacement.html).
6+
You can read more about HMR by visiting [this page](https://webpack.js.org/guides/hot-module-replacement).
77

88
In order to get HMR working with Angular CLI we first need to add a new environment and enable it.
99

docs/documentation/stories/proxy.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Proxy To Backend
22

3-
Using the [proxying support](https://webpack.github.io/docs/webpack-dev-server.html#proxy) in webpack's dev server we can highjack certain URLs and send them to a backend server.
3+
Using the [proxying support](https://webpack.js.org/configuration/dev-server/#devserver-proxy) in webpack's dev server we can highjack certain URLs and send them to a backend server.
44
We do this by passing a file to `--proxy-config`
55

66
Say we have a server running on `http://localhost:3000/api` and we want all calls to `http://localhost:4200/api` to go to that server.
@@ -16,7 +16,7 @@ We create a file next to our project's `package.json` called `proxy.conf.json` w
1616
}
1717
```
1818

19-
You can read more about what options are available [here](https://webpack.github.io/docs/webpack-dev-server.html#proxy).
19+
You can read more about what options are available [here](https://webpack.js.org/configuration/dev-server/#devserver-proxy).
2020

2121
We can then edit the `package.json` file's start script to be
2222

packages/@angular/cli/tasks/serve.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ export default Task.extend({
108108

109109
if (serveTaskOptions.liveReload) {
110110
// This allows for live reload of page when changes are made to repo.
111-
// https://webpack.github.io/docs/webpack-dev-server.html#inline-mode
111+
// https://webpack.js.org/configuration/dev-server/#devserver-inline
112112
let entryPoints = [
113113
`webpack-dev-server/client?${clientAddress}`
114114
];
115115
if (serveTaskOptions.hmr) {
116-
const webpackHmrLink = 'https://webpack.github.io/docs/hot-module-replacement.html';
116+
const webpackHmrLink = 'https://webpack.js.org/guides/hot-module-replacement';
117117

118118
ui.writeLine(oneLine`
119119
${yellow('NOTICE')} Hot Module Replacement (HMR) is enabled for the dev server.

0 commit comments

Comments
 (0)