优化dev输出
parent
8c26342cd5
commit
5cd075c46e
|
@ -386,8 +386,8 @@ export function parseHtml(html, { page, imports, entry }) {
|
||||||
`${
|
`${
|
||||||
process.env.NODE_ENV === 'development'
|
process.env.NODE_ENV === 'development'
|
||||||
? ` <script>${
|
? ` <script>${
|
||||||
Es.transformSync(HMR_SCRIPT, { minify: true }).code
|
Es.transformSync(HMR_SCRIPT, { minify: true }).code.trim()
|
||||||
}</script>`
|
}</script>\n`
|
||||||
: ''
|
: ''
|
||||||
}</head>`
|
}</head>`
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue