-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
91 lines (88 loc) · 2.48 KB
/
nuxt.config.ts
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
import NuxtConfiguration from '@nuxt/config';
delete process.env.http_proxy;
delete process.env.HTTP_PROXY;
delete process.env.https_proxy;
delete process.env.HTTPS_PROXY;
const config: NuxtConfiguration = {
head: {
title: 'Cardlay | Grid',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: `Cardlay | Grid | The grid system, provided by Cardlay, is the best tool for you to invest you money` },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'http://fonts.googleapis.com/css?family=Roboto:100italic,100,300italic,300,400italic,400,500italic,500,700italic,700,900italic,900' },
{
rel: 'stylesheet',
href: 'https://use.fontawesome.com/releases/v5.8.2/css/all.css',
integrity: 'sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay',
crossorigin: 'anonymous',
},
],
},
plugins: [
'~/plugins/vee-validate',
'~/plugins/buefy',
'~/plugins/portal-vue',
'~/plugins/vue-dom-portal',
'~/plugins/rxjs',
{ src: '~/plugins/vuex-shared-mutations', ssr: false },
],
css: [
'~/assets/scss/main.scss',
],
styleResources: {
scss: [
'~/assets/scss/variables.scss',
],
},
manifest: {
name: 'Cardlay | Grid',
short_name: 'Cardlay | Grid',
description: `Cardlay | Grid | The grid system, provided by Cardlay, is the best tool for you to invest you money`,
lang: 'en',
theme_color: '#212E43',
start_url: '/',
},
modules: [
'@nuxtjs/pwa',
['@nuxtjs/axios', {
credentials: false,
proxyHeaders: false,
prefix: '/api',
browserBaseURL: '/api',
}],
'@nuxtjs/proxy',
'@nuxtjs/style-resources',
'nuxt-vuex-localstorage',
],
loading: '~/components/loading.vue',
axios: {},
ignore: [
'**/sw*.js',
'api/**/*',
'**/*.spec.*',
'**/*.*-spec.*',
'test-utils/**/*',
],
build: {
extend(configExtended, { isClient }) {
if (isClient) {
configExtended.devtool = '#source-map';
}
},
watch: process.env.IS_SEPARATE ? [] : ['api/**/*'],
},
serverMiddleware: process.env.IS_SEPARATE ? [] : [
{ path: '/api', handler: '~/api/main.ts'},
],
router: {
middleware: ['fwdcookies', 'auth'],
},
proxy: process.env.IS_SEPARATE ? {
'/api': 'http://localhost:4000',
} : {},
};
export default config;