-
Notifications
You must be signed in to change notification settings - Fork 7
/
nuxt.config.js
92 lines (90 loc) 路 1.92 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
require('dotenv/config');
const { resolve } = require('path');
module.exports = {
/**
* Specify application header defaults
*/
head: {
title: 'Nuxt TS Starter',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content:
'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui'
},
{
hid: 'description',
name: 'description',
content: 'We love using Nuxt & Typescript 馃挌馃挋'
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }]
},
css: ['~/assets/styles/app.styl', '~/assets/styles/main.styl'],
/**
* Customize application loading bar
*/
loading: {
color: '#ff4081'
},
/**
* Specify build directory
*/
buildDir: 'build/client',
/**
* Specify nuxt source directory
*/
srcDir: 'client',
/**
* Configure & extend Webpack build
*/
build: {
// analyze: true,
maxChunkSize: 300000,
vendor: [
'nuxt-class-component',
'vee-validate',
'vue-class-component',
'vue-property-decorator',
'vuex-class',
'vuetify'
]
},
/**
* Specify additional nuxt plugins
*/
plugins: [],
/**
* Specify additional nuxt modules
*/
modules: [
['@nuxtjs/dotenv', { path: resolve('.') }],
['@nuxtjs/axios'],
['@nuxtjs/proxy'],
['nuxtjs-extensions/filters'],
['nuxtjs-extensions/vee-validate'],
[
'nuxtjs-extensions/typescript',
{
tsconfig: resolve(__dirname, 'client', 'tsconfig.json'),
tslint: resolve(__dirname, 'tslint.json')
}
],
[
'nuxtjs-extensions/vuetify',
{
css: false,
theme: {
primary: '#3f51b5',
secondary: '#757de8',
accent: '#ff4081',
error: '#F44336',
warning: '#ff9800',
info: '#2196F3',
success: '#4CAF50'
}
}
]
]
};