We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38afc8 commit 99f833bCopy full SHA for 99f833b
template/index.html
@@ -17,6 +17,10 @@
17
<!-- Add to home screen for Windows -->
18
<meta name="msapplication-TileImage" content="/static/img/icons/icon-144x144.png">
19
<meta name="msapplication-TileColor" content="#000000">
20
+ <% for (var chunk of webpack.chunks) {
21
+ for (var file of chunk.files) {
22
+ if (file.match(/\.(js|css)$/)) { %>
23
+ <link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>"><% }}} %>
24
</head>
25
<body>
26
<div id="app">This is your fallback content in case JavaScript fails to load.</div>
0 commit comments