Skip to content

Commit 9d3edf3

Browse files
committed
tweak index template for less whitespace
1 parent da176f3 commit 9d3edf3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/index.template.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
<link rel="shortcut icon" sizes="48x48" href="/public/logo-48.png">
99
<meta name="theme-color" content="#f60">
1010
<link rel="manifest" href="/manifest.json">
11-
<% for (var chunk of webpack.chunks) { %>
12-
<% for (var file of chunk.files) { %>
13-
<% if (file.match(/\.(js|css)$/)) { %>
14-
<link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>">
15-
<% } %>
16-
<% } %>
17-
<% } %>
11+
<% for (var chunk of webpack.chunks) {
12+
for (var file of chunk.files) {
13+
if (file.match(/\.(js|css)$/)) { %>
14+
<link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>"><% }}} %>
1815
</head>
1916
<body>
2017
<!--vue-ssr-outlet-->

0 commit comments

Comments
 (0)