-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
102 lines (102 loc) · 2.26 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
module.exports = {
modules: [
'nuxt-babel',
'@nuxtjs/pwa',
['nuxt-sass-resources-loader', [
'@/assets/autoload.scss',
]],
['@nuxtjs/google-analytics', {
id: 'UA-120531729-1',
}],
],
/*
** Plugins
*/
plugins: [
{ src: '~/plugins/intersection.js', ssr: false },
],
/*
** Headers of the page
*/
head: {
title: 'Cool UX Tools',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'A curated list of (obviously) cool resources and tools for developers, UX researchers, designers and project managers.' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com/', crossorigin: 'anonymous' },
],
},
/*
** Web App Manifest
*/
manifest: {
name: 'Cool UX Tools',
short_name: 'CoolUXTools',
display: 'standalone',
lang: 'en',
},
/*
** Customize the progress bar color
*/
loading: { color: '#4ba630' },
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/,
})
}
},
},
/*
** Generate configuration
*/
generate: {
fallback: true,
routes: [
'/user-recruiting',
'/user-recording-heatmap',
'/onsite-surveys',
'/surveys',
'/user-journey',
'/user-personas',
'/card-sorting',
'/mindmapping-brainstorming',
'/wireframing',
'/mocking-prototyping',
'/high-fidelity-prototyping',
'/design-feedback',
'/live-chat',
'/presentations',
'/story-mapping',
'/design-guide-patterns',
'/media-graphic',
'/typography',
'/screen-grabbing',
'/landing-page',
'/ab-split-testing',
'/web-mobile-analytics',
'/web-performance-optimization',
'/accessibility',
'/ux-suite',
'/notetaking',
'/project-management',
],
},
}