We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cbb5e8 commit faf4d65Copy full SHA for faf4d65
1 file changed
tests/helpers/html-generator-plugin.js
@@ -1,17 +1,20 @@
1
-const HTMLContentForIndex = (styleTags = '') => `
+const HTMLContentForIndex = (styleTags = '') => {
2
+ const headStyleTags = styleTags ? `\n ${styleTags}` : '';
3
+
4
+ return `
5
<!DOCTYPE html>
6
<html>
7
<head>
8
<meta charset='UTF-8'>
- <title>rspack-dev-server</title>
- ${styleTags}
9
+ <title>rspack-dev-server</title>${headStyleTags}
10
</head>
11
<body>
12
<h1>rspack-dev-server is running...</h1>
13
<script type="text/javascript" charset="utf-8" src="/main.js"></script>
14
</body>
15
</html>
16
`;
17
+};
18
19
const HTMLContentForAssets = (assetName) => `
20
0 commit comments