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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user