-
Notifications
You must be signed in to change notification settings - Fork 4
/
nuxt.config.js
112 lines (108 loc) · 2.62 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
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'Element43 - Free and Open Data for EVE Online',
titleTemplate: '%s | Element43 | EVE Online',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'theme-color', content: '#f7a53d' },
{ hid: 'description', name: 'description', content: 'More bang for the buck! Welcome to element43, a free tool providing you with all the information you need to get the most out of your hard-earned ISK. Best of all: it\'s completely free! - Get started now!' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
{ rel: 'manifest', href: '/manifest.json' }
]
},
/*
** Caching
*/
modules: [
['@nuxtjs/component-cache', { max: 1000, maxAge: 1000 * 60 * 24 }],
'~/modules/typescript'
],
/*
** Global CSS
*/
css: ['assets/styles/fonts.css'],
/*
** Customize the progress-bar color
*/
loading: {
color: '#f7a53d',
height: '3px'
},
/*
** VueJS Plugins
*/
plugins: [
'~/plugins/vue-plugins'
],
/*
** Routing
*/
router: {
middleware: 'legacyRedirect'
},
/*
** Build configuration
*/
build: {
vendor: ['accounting',
'highcharts',
'highcharts/highstock',
'highcharts/highcharts-more',
'nuxt-class-component',
'moment',
'lodash',
'slugify'],
/*
** Run linters on save
*/
extend (config, ctx) {
if (ctx.isClient) {
// eslint
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
// tslint
config.module.rules.push({
enforce: 'pre',
test: /\.ts$/,
loader: 'tslint-loader',
exclude: /(node_modules)/,
options: {
configFile: 'tslint.json'
}
})
}
// Load images
if (!config.module.loaders) {
config.module.loaders = []
}
config.module.loaders.push({
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
query: {
limit: 10000,
name: 'img/[name].[hash:7].[ext]'
}
})
config.module.loaders.push({
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
query: {
limit: 10000,
name: 'fonts/[name].[hash:7].[ext]'
}
})
}
}
}