Nuxt/examples/spa/nuxt.config.js

42 lines
1.0 KiB
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
export default {
2017-08-18 14:46:54 +00:00
/*
** Single Page Application mode
** Means no SSR
*/
2017-08-18 13:44:43 +00:00
mode: 'spa',
2017-08-18 14:46:54 +00:00
/*
2017-08-21 09:38:30 +00:00
** Headers of the page (works with SPA!)
*/
head: {
title: 'SPA mode with Nuxt.js',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
2017-08-21 09:42:17 +00:00
{ hid: 'description', name: 'description', content: 'Single Page Application made with Nuxt.js' }
2017-08-21 09:38:30 +00:00
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
2017-08-18 14:46:54 +00:00
** Add css for appear transition
*/
css: ['~/assets/main.css'],
/*
** Customize loading indicator
2017-08-18 14:46:54 +00:00
*/
2017-08-18 13:44:43 +00:00
loadingIndicator: {
/*
2017-09-22 13:21:39 +00:00
** See https://nuxtjs.org/api/configuration-loading-indicator for available loading indicators
2017-08-18 13:44:43 +00:00
** You can add a custom indicator by giving a path
*/
// name: 'folding-cube',
2017-08-18 13:44:43 +00:00
/*
** You can give custom options given to the template
** See https://github.com/nuxt/nuxt.js/blob/dev/lib/app/views/loading/folding-cube.html
*/
// color: '#DBE1EC'
// background: 'white'
2017-08-18 13:44:43 +00:00
}
}