mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
22 lines
674 B
HTML
22 lines
674 B
HTML
<% const {
|
|
title, htmlAttrs, bodyAttrs, link, style, script, noscript, meta
|
|
} = context.meta.inject() %><!DOCTYPE html>
|
|
<html n-head-ssr ${htmlAttrs.text()}>
|
|
<head>
|
|
${meta.text()}
|
|
${title.text()}
|
|
${link.text()}
|
|
${style.text()}
|
|
${script.text()}
|
|
${noscript.text()}
|
|
<base href="<%= baseUrl %>">
|
|
<% if (!dev) { %><link rel="stylesheet" href="<%= files.css %>"><% } %>
|
|
</head>
|
|
<body ${bodyAttrs.text()}>
|
|
<%= APP %>
|
|
<script type="text/javascript" defer>window.__NUXT__=<%= serialize(context.nuxt) %></script>
|
|
<script src="<%= files.vendor %>" defer></script>
|
|
<script src="<%= files.app %>" defer></script>
|
|
</body>
|
|
</html>
|