y3-app
Version:
CLI to add your project structure
19 lines (18 loc) • 603 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIndexHtml = getIndexHtml;
function getIndexHtml(projectName, projectType) {
return `
<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>${projectName}</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/${projectType === 'fullstack' ? 'frontend' : 'src'}/main.tsx"></script>
</body>
</html>`;
}