优化dev输出

pull/1/head
yutent 2023-05-16 16:38:03 +08:00
parent 8c26342cd5
commit 5cd075c46e
1 changed files with 2 additions and 2 deletions

View File

@ -386,8 +386,8 @@ export function parseHtml(html, { page, imports, entry }) {
`${
process.env.NODE_ENV === 'development'
? ` <script>${
Es.transformSync(HMR_SCRIPT, { minify: true }).code
}</script>`
Es.transformSync(HMR_SCRIPT, { minify: true }).code.trim()
}</script>\n`
: ''
}</head>`
)