Commit 9d3edf3c authored by Evan You's avatar Evan You

tweak index template for less whitespace

parent da176f38
...@@ -8,13 +8,10 @@ ...@@ -8,13 +8,10 @@
<link rel="shortcut icon" sizes="48x48" href="/public/logo-48.png"> <link rel="shortcut icon" sizes="48x48" href="/public/logo-48.png">
<meta name="theme-color" content="#f60"> <meta name="theme-color" content="#f60">
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
<% for (var chunk of webpack.chunks) { %> <% for (var chunk of webpack.chunks) {
<% for (var file of chunk.files) { %> for (var file of chunk.files) {
<% if (file.match(/\.(js|css)$/)) { %> if (file.match(/\.(js|css)$/)) { %>
<link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>"> <link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>"><% }}} %>
<% } %>
<% } %>
<% } %>
</head> </head>
<body> <body>
<!--vue-ssr-outlet--> <!--vue-ssr-outlet-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment