mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-23 01:26:36 +00:00
fix(nuxt): remove whitespace around spa loading template
This commit is contained in:
parent
aa6cc48eb0
commit
070bd103c7
@ -624,7 +624,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