-
Notifications
You must be signed in to change notification settings - Fork 182
/
nuxt.config.js
77 lines (68 loc) · 1.56 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
const pkg = require('./package.json')
export default {
ssr: false,
target: 'static',
telemetry: false,
env: {
PROD: '1',
ANDROID_APP_URL: 'https://play.google.com/store/apps/details?id=com.audiobookshelf.app',
IOS_APP_URL: ''
},
publicRuntimeConfig: {
version: pkg.version
},
head: {
title: 'Audiobookshelf',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'viewport-fit=cover, width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
script: [
{
src: '/libs/sortable.js'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
css: [
'@/assets/tailwind.css',
'@/assets/app.css'
],
plugins: [
'@/plugins/server.js',
'@/plugins/db.js',
'@/plugins/localStore.js',
'@/plugins/init.client.js',
'@/plugins/axios.js',
'@/plugins/nativeHttp.js',
'@/plugins/capacitor/index.js',
'@/plugins/capacitor/AbsAudioPlayer.js',
'@/plugins/toast.js',
'@/plugins/constants.js',
'@/plugins/haptics.js',
'@/plugins/i18n.js'
],
components: true,
modules: [
'@nuxtjs/axios'
],
axios: {},
build: {
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
babel: {
plugins: [['@babel/plugin-proposal-private-property-in-object', { loose: true }]],
},
}
}