advplyr.audiobookshelf-app/nuxt.config.js

75 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-09-01 20:07:11 -05:00
const pkg = require('./package.json')
export default {
ssr: false,
target: 'static',
2021-09-01 20:07:11 -05:00
env: {
2021-09-02 12:19:26 -05:00
PROD: '1',
ANDROID_APP_URL: 'https://play.google.com/store/apps/details?id=com.audiobookshelf.app',
IOS_APP_URL: ''
2021-09-01 20:07:11 -05:00
},
publicRuntimeConfig: {
version: pkg.version
},
head: {
title: 'Audiobookshelf',
2021-09-01 20:07:11 -05:00
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
2021-12-31 16:57:53 -06:00
{ name: 'viewport', content: 'viewport-fit=cover, width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1' },
2021-09-01 20:07:11 -05:00
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
script: [
{
src: '/libs/sortable.js'
}
],
2021-09-01 20:07:11 -05:00
link: [
2022-05-05 18:25:32 -05:00
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
2021-09-01 20:07:11 -05:00
]
},
css: [
'@/assets/app.css'
2021-09-01 20:07:11 -05:00
],
plugins: [
'@/plugins/server.js',
'@/plugins/db.js',
'@/plugins/localStore.js',
2021-09-01 20:07:11 -05:00
'@/plugins/init.client.js',
'@/plugins/axios.js',
'@/plugins/nativeHttp.js',
'@/plugins/capacitor/index.js',
'@/plugins/capacitor/AbsAudioPlayer.js',
2021-12-04 19:56:29 -06:00
'@/plugins/toast.js',
'@/plugins/constants.js',
'@/plugins/haptics.js',
'@/plugins/i18n.js'
2021-09-01 20:07:11 -05:00
],
components: true,
buildModules: [
'@nuxtjs/tailwindcss',
],
modules: [
'@nuxtjs/axios'
],
axios: {},
build: {
babel: {
plugins: [['@babel/plugin-proposal-private-property-in-object', { loose: true }]],
},
}
}