-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.js
116 lines (114 loc) · 2.4 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
108
109
110
111
112
113
114
115
116
import fs from 'fs';
const packageJson = fs.readFileSync('./package.json', 'utf8');
const changelog = fs.readFileSync('./CHANGELOG.md', 'utf8');
const { version } = JSON.parse(packageJson);
export default {
axios: {
baseURL: 'https://api.torn.com' // TORN is the only API we use, in services/torn.js
},
bootstrapVue: {
bootstrapCSS: false,
bootstrapVueCSS: false,
componentPlugins: [
// 'LayoutPlugin',
'FormPlugin',
// 'FormCheckboxPlugin',
'FormInputPlugin',
// 'FormRadioPlugin',
'ModalPlugin',
'ToastPlugin',
],
directivePlugins: [
// 'VBPopoverPlugin',
'VBTooltipPlugin',
// 'VBScrollspyPlugin',
],
components: [
'BButton',
'BButtonGroup',
'BOverlay',
'BDropdown',
'BDropdownItemButton',
'BFormCheckbox',
'BFormGroup',
'BFormInput',
'BInputGroup',
'BModal',
],
},
build: {
babel: {
compact: true,
},
},
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/google-fonts'
],
components: true,
css: [
'@/assets/style.scss'
],
dayjs: {
plugins: [
'utc',
],
},
head: {
title: 'TLL',
titleTemplate: '%s | TLL',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'TLL aims to help TORN City players with loss/escape selling/buying: lists, groups, counts your attacks, stores prices & paid status, shows you KPIs.' }
],
link: [
{
rel: 'icon',
href: 'favicon.ico',
},
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'
},
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css'
}
],
// TODO favicon, fonts, rewrite description
},
googleFonts: {
display: 'swap',
families: {
'Roboto+Condensed': [400, 700],
},
},
loading: {
color: '#007bff', // $primary
},
modules: [
'bootstrap-vue/nuxt',
'@nuxtjs/axios',
'@nuxtjs/dayjs',
],
plugins: [
'@/plugins/formatters.client.js',
'@/plugins/init.client.js',
'@/plugins/storage.client.js',
'@/plugins/timeago.js',
'@/plugins/toasts.client.js',
],
publicRuntimeConfig: {
APP_VERSION: JSON.stringify(version),
BUILD_TIMESTAMP: new Date().getTime(),
CHANGELOG: JSON.stringify(changelog)
},
router: {
base: '/torn-losers-log/',
},
target: 'static',
};