ffplayout/nuxt.config.js

107 lines
2.4 KiB
JavaScript
Raw Normal View History

2020-01-29 17:40:15 +01:00
require('dotenv').config()
export default {
2020-09-11 12:12:12 +02:00
ssr: false,
2020-01-29 17:40:15 +01:00
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [{
charset: 'utf-8'
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || ''
}
],
link: [{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico'
}]
},
/*
** Customize the progress-bar color
*/
loading: {
color: '#ff9c36'
},
/*
** Global CSS
*/
css: [
2020-04-30 17:10:34 +02:00
'@/assets/css/bootstrap.min.css'
2020-01-29 17:40:15 +01:00
],
/*
** Plugins to load before mounting the App
*/
2020-04-08 17:23:58 +02:00
plugins: [
2020-04-30 10:53:13 +02:00
{ src: '~/plugins/axios' },
2020-04-13 21:36:06 +02:00
{ src: '~/plugins/filters' },
2020-05-24 13:34:34 +02:00
{ src: '~/plugins/nuxt-client-init.js', ssr: false },
2020-04-16 18:27:03 +02:00
{ src: '~plugins/video.js', ssr: false },
2020-04-12 21:13:35 +02:00
{ src: '~plugins/scrollbar.js', ssr: false },
2020-04-16 18:27:03 +02:00
{ src: '~plugins/splitpanes.js', ssr: false },
2020-04-24 13:55:51 +02:00
{ src: '~plugins/loading.js', ssr: false },
{ src: '~/plugins/helpers.js' },
{ src: '~plugins/draggable.js', ssr: false }
2020-04-08 17:23:58 +02:00
],
2020-01-29 17:40:15 +01:00
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://bootstrap-vue.js.org
'bootstrap-vue/nuxt',
'@nuxtjs/axios',
2020-07-06 14:42:39 +02:00
'@nuxtjs/dayjs',
2020-04-08 17:23:58 +02:00
'@nuxtjs/style-resources',
2020-01-29 17:40:15 +01:00
// Doc: https://github.com/nuxt-community/dotenv-module
2020-04-12 21:13:35 +02:00
'@nuxtjs/dotenv',
2020-07-06 14:42:39 +02:00
'cookie-universal-nuxt'
2020-01-29 17:40:15 +01:00
],
2020-04-08 17:23:58 +02:00
2020-01-29 17:40:15 +01:00
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
baseURL: process.env.API_URL
},
2020-04-08 17:23:58 +02:00
styleResources: {
scss: [
'@/assets/css/_variables.scss',
2020-04-30 17:10:34 +02:00
'@/assets/scss/globals.scss'
2020-04-08 17:23:58 +02:00
]
},
2020-01-29 17:40:15 +01:00
bootstrapVue: {
bootstrapCSS: false,
2020-04-08 17:23:58 +02:00
icons: true
2020-01-29 17:40:15 +01:00
},
2020-04-08 17:23:58 +02:00
2020-01-29 17:40:15 +01:00
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
2020-08-26 09:27:24 +02:00
extend(config, ctx) {},
babel: { compact: true }
2020-01-29 17:40:15 +01:00
}
}