mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
perf(spa): disable loadingIndicator by default
This commit is contained in:
parent
160e1d35e4
commit
342d9a8bf6
@ -112,7 +112,7 @@ export default {
|
|||||||
duration: 5000,
|
duration: 5000,
|
||||||
rtl: false
|
rtl: false
|
||||||
},
|
},
|
||||||
loadingIndicator: {},
|
loadingIndicator: false,
|
||||||
transition: {
|
transition: {
|
||||||
name: 'page',
|
name: 'page',
|
||||||
mode: 'out-in',
|
mode: 'out-in',
|
||||||
|
@ -103,17 +103,14 @@ Options.from = function (_options) {
|
|||||||
options.store = true
|
options.store = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SPA loadingIndicator
|
||||||
|
if (options.loadingIndicator) {
|
||||||
// Normalize loadingIndicator
|
// Normalize loadingIndicator
|
||||||
if (!isPureObject(options.loadingIndicator)) {
|
if (!isPureObject(options.loadingIndicator)) {
|
||||||
options.loadingIndicator = { name: options.loadingIndicator }
|
options.loadingIndicator = { name: options.loadingIndicator }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply default hash to CSP option
|
// Apply defaults
|
||||||
if (options.render.csp === true) {
|
|
||||||
options.render.csp = { hashAlgorithm: 'sha256' }
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply defaults to loadingIndicator
|
|
||||||
options.loadingIndicator = Object.assign(
|
options.loadingIndicator = Object.assign(
|
||||||
{
|
{
|
||||||
name: 'pulse',
|
name: 'pulse',
|
||||||
@ -122,6 +119,12 @@ Options.from = function (_options) {
|
|||||||
},
|
},
|
||||||
options.loadingIndicator
|
options.loadingIndicator
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply default hash to CSP option
|
||||||
|
if (options.render.csp === true) {
|
||||||
|
options.render.csp = { hashAlgorithm: 'sha256' }
|
||||||
|
}
|
||||||
|
|
||||||
// cssSourceMap
|
// cssSourceMap
|
||||||
if (options.build.cssSourceMap === undefined) {
|
if (options.build.cssSourceMap === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user