1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-19 21:11:13 +02:00

App.jsx: fix template for index.html in file mode creation

This commit is contained in:
Kushagra Gour
2019-03-03 15:17:01 +05:30
parent 2bc061f33b
commit af2795c12b

View File

@@ -344,8 +344,19 @@ export default class App extends Component {
files || [
{
name: 'index.html',
content:
'hello\n<link rel="stylesheet" href="styles/style.css">\n<script src="script.js"></script>'
content: `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Webmaker untitled 1</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
Hello World
<script src="script.js"></script>
</body>
</html>`
},
{
name: 'styles',