mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): remove whitespace around spa loading template
This commit is contained in:
parent
501ccc3750
commit
5f59f30134
@ -625,7 +625,7 @@ async function spaLoadingTemplate (nuxt: Nuxt) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (existsSync(spaLoadingTemplate)) {
|
if (existsSync(spaLoadingTemplate)) {
|
||||||
return readFileSync(spaLoadingTemplate, 'utf-8')
|
return readFileSync(spaLoadingTemplate, 'utf-8').trim()
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
// fall through if we have issues reading the file
|
// fall through if we have issues reading the file
|
||||||
|
Loading…
Reference in New Issue
Block a user