-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
83 lines (83 loc) · 1.96 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
module.exports = {
telemetry: false,
/*
** Headers of the page
*/
head: {
htmlAttrs: {
lang: 'uk',
},
title: '4G/3G БС України',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'keywords', content: '4G та 3G базові станції України' },
{ hid: 'description', name: 'description', content: '4G/3G БС України' },
{ name: 'theme-color', content: '#80cbc4' },
],
link: [
{ rel: 'icon', type: 'image/png', href: '/img/icons/4g-512x512.png' },
{ rel: 'manifest', href: '/manifest.json' },
],
},
/*
** Customize the progress bar color
*/
loading: { color: '#009688' },
/*
** Build configuration
*/
build: {
parallel: false,
cache: true,
hardSource: true,
/*
** 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)/,
})
}
config.node = {
...config.node,
fs: 'empty',
}
},
loaders: {
vue: {
compilerOptions: {
whitespace: 'condense',
},
},
},
},
css: ['vue-good-table/dist/vue-good-table.css', '@/assets/styles/index.css'],
plugins: [
{ src: '~/plugins/filters' },
{ src: '~/plugins/firebase', ssr: false },
{ src: '~/plugins/vue-good-table' },
{ src: '~/plugins/vue-notification', ssr: false },
{ src: '~/plugins/vue-promise-btn', ssr: false },
{ src: '~/plugins/vue-slide-up-down' },
{ src: '~/plugins/vuex-persistedstate.js', ssr: false },
],
modules: [
[
'@nuxtjs/google-analytics',
{
id: 'UA-114730066-1',
},
],
],
manifest: {
gcm_sender_id: '114920397145',
},
generate: {
crawler: false,
},
}