优化dev输出
parent
8c26342cd5
commit
5cd075c46e
|
@ -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>`
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue