我正在尝试生成一些反应 html,但插入了奇怪的空格来破坏 html。
请帮忙!!!!
使用基本模板
用命令运行
pgen exec pg-generator-templates/react-crud-template/ -d convectorFeathersServer -u postgres -p postgres -t src/react-crud-build
我的模板文件:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<title>React App</title>
</head>
<body>
<div id="root"></div>
<script src="bundle.js"></script>
</body>
结果
< !doctype html >
<
html lang = "en" >
<
head >
<
meta charset = "utf-8" >
<
meta name = "viewport"
content = "width=device-width, initial-scale=1" >
<
link rel = "stylesheet"
href = "https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css" >
<
title > React App < /title> <
/head> <
body >
<
div id = "root" > < /div>
<
script src = "bundle.js" > < /script> <
/body> <
/html>