-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
107 lines (93 loc) · 2.47 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Spacetraders',
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
generate: {
fallback: true,
},
loading: false,
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{
src: '~/plugins/spacetraders-api',
ssr: false,
},
{ src: '~/plugins/vuex-persist', ssr: false },
{ src: '~/plugins/game', ssr: false },
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
'nuxt-animejs',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
],
router: {
middleware: ['auth'],
},
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
lang: 'en',
name: 'Spacetraders',
short_name: 'Spacetraders',
},
icon: {
fileName: 'logo.png',
sizes: [64, 120, 144, 152, 192, 384, 512],
targetDir: 'icons',
},
meta: {
lang: 'en',
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
appleStatusBarStyle: 'black-translucent',
favicon: true,
name: 'Spacetraders',
author: 'iDentitY',
description: 'A webclient for the Spacetraders API',
theme_color: '#2d3748',
},
},
tailwindcss: {
configPath: '~/tailwind.config.js',
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
loaders: {
imgUrl: {
// disable base64 conversion of images because it's not supported by the game engine
limit: false,
},
},
extend(config, ctx) {
config.module.rules.push({
test: /\.(ogg|mp3|wav|mpe?g)$/i,
loader: 'file-loader',
options: {
name: '[path][name].[ext]',
},
})
},
},
}