WebService-Boilerplate/views/index.html.ejs
2025-03-11 12:57:45 +07:00

24 lines
840 B
Plaintext

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
<% if (environment === 'production') { %>
<% manifest['src-frontend/main.js'].css.forEach(function(cssFile) { %>
<link rel="stylesheet" href="<%= cssFile %>">
<% }); %>
<% } %>
</head>
<body>
<div id="app"></div>
<% if (environment === 'production') { %>
<script type="module" src="<%= manifest['src-frontend/main.js'].file %>"></script>
<% } else { %>
<script type="module" src="http://localhost:5173/@vite/client"></script>
<script type="module" src="http://localhost:5173/src-frontend/main.js"></script>
<% } %>
</body>
</html>