Skip to content

Commit

Permalink
fix(vue-renderer): ensure custom build indicator preserves some white…
Browse files Browse the repository at this point in the history
…space
  • Loading branch information
danielroe committed Aug 23, 2021
1 parent 0145578 commit 0d064bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-renderer/src/renderer.js
Expand Up @@ -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 = ''
}
Expand Down

0 comments on commit 0d064bb

Please sign in to comment.