Skip to content

Commit fd3c608

Browse files
anubhav7495addyosmani
authored andcommitted
Added path to static assets in head (#73)
1 parent 7da2e9e commit fd3c608

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

template/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>{{ name }}</title>
8-
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/icons/favicon-32x32.png">
9-
<link rel="icon" type="image/png" sizes="16x16" href="/static/img/icons/favicon-16x16.png">
8+
<link rel="icon" type="image/png" sizes="32x32" href="<%= htmlWebpackPlugin.files.publicPath %>static/img/icons/favicon-32x32.png">
9+
<link rel="icon" type="image/png" sizes="16x16" href="<%= htmlWebpackPlugin.files.publicPath %>static/img/icons/favicon-16x16.png">
1010
<!--[if IE]><link rel="shortcut icon" href="/static/img/icons/favicon.ico"><![endif]-->
1111
<!-- Add to home screen for Android and modern mobile browsers -->
12-
<link rel="manifest" href="/static/manifest.json">
12+
<link rel="manifest" href="<%= htmlWebpackPlugin.files.publicPath %>static/manifest.json">
1313
<meta name="theme-color" content="#4DBA87">
1414

1515
<!-- Add to home screen for Safari on iOS -->
1616
<meta name="apple-mobile-web-app-capable" content="yes">
1717
<meta name="apple-mobile-web-app-status-bar-style" content="black">
1818
<meta name="apple-mobile-web-app-title" content="{{ name }}">
19-
<link rel="apple-touch-icon" href="/static/img/icons/apple-touch-icon-152x152.png">
19+
<link rel="apple-touch-icon" href="<%= htmlWebpackPlugin.files.publicPath %>static/img/icons/apple-touch-icon-152x152.png">
2020
<!-- Add to home screen for Windows -->
21-
<meta name="msapplication-TileImage" content="/static/img/icons/msapplication-icon-144x144.png">
21+
<meta name="msapplication-TileImage" content="<%= htmlWebpackPlugin.files.publicPath %>static/img/icons/msapplication-icon-144x144.png">
2222
<meta name="msapplication-TileColor" content="#000000">
2323
<% for (var chunk of webpack.chunks) {
2424
for (var file of chunk.files) {

0 commit comments

Comments
 (0)