Skip to content

Commit edc5362

Browse files
fix: remove the shortcut link type
Remove the `shortcut` link type in `<link rel="shortcut icon" ...>`
1 parent 84f0f87 commit edc5362

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ module.exports = {
256256
}),
257257
// Makes some environment variables available in index.html.
258258
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
259-
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
259+
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
260260
// In development, this will be an empty string.
261261
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
262262
// Makes some environment variables available to the JS code, for example:

config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ module.exports = {
316316
}),
317317
// Makes some environment variables available in index.html.
318318
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
319-
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
319+
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
320320
// In production, it will be an empty string unless you specify "homepage"
321321
// in `package.json`, in which case it will be the pathname of that URL.
322322
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),

config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function(proxy, allowedHost) {
4242
// Instead, we establish a convention that only files in `public` directory
4343
// get served. Our build script will copy `public` into the `build` folder.
4444
// In `index.html`, you can get URL of `public` folder with %PUBLIC_URL%:
45-
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
45+
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
4646
// In JavaScript code, you can access it with `process.env.PUBLIC_URL`.
4747
// Note that we only recommend to use `public` folder as an escape hatch
4848
// for files like `favicon.ico`, `manifest.json`, and libraries that are

template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ If you put a file into the `public` folder, it will **not** be processed by Webp
556556
Inside `index.html`, you can use it like this:
557557

558558
```html
559-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
559+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico">
560560
```
561561

562562
Only files inside the `public` folder will be accessible by `%PUBLIC_URL%` prefix. If you need to use a file from `src` or `node_modules`, you’ll have to copy it there to explicitly specify your intention to make this file a part of the build.

template/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1111
-->
1212
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
13+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico">
1414
<title>Elm App</title>
1515
</head>
1616
<body>

0 commit comments

Comments
 (0)