mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix(vue-renderer): ensure custom build indicator preserves some whitespace (#9705)
This commit is contained in:
parent
3c10f176e6
commit
b0147772ec
@ -153,7 +153,8 @@ export default class VueRenderer {
|
||||
|
||||
if (await fs.exists(loadingHTMLPath)) {
|
||||
this.serverContext.resources.loadingHTML = await fs.readFile(loadingHTMLPath, 'utf8')
|
||||
this.serverContext.resources.loadingHTML = this.serverContext.resources.loadingHTML.replace(/\r|\n|[\t\s]{3,}/g, '')
|
||||
this.serverContext.resources.loadingHTML =
|
||||
this.serverContext.resources.loadingHTML.replace(/\r|\n/g, ' ').replace(/[\t\s]+/g, ' ')
|
||||
} else {
|
||||
this.serverContext.resources.loadingHTML = ''
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user