-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnuxt.config.js
124 lines (112 loc) · 2.12 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
113
114
115
116
117
118
119
120
121
122
123
124
export default {
/*
** Build configuration
*/
build: {
extend(config, ctx) {
// Extend only webpack config for client-bundle
if (ctx.isClient) {
config.target = 'electron-renderer'
config.output.globalObject = 'this'
config.module.rules.unshift({
test: /\.worker\.ts$/,
loader: 'worker-loader',
})
}
// Set relative path
config.output.publicPath = './_nuxt/'
},
},
/*
** Nuxt.js dev-modules
*/
buildModules: ['@nuxt/typescript-build', '@nuxtjs/composition-api'],
/*
** Auto import components
*/
components: true,
/*
** Global CSS
*/
css: [
'@mdi/font/css/materialdesignicons.css',
'typeface-roboto/index.css',
'~/assets/app.scss',
],
/*
** Generate configuration
*/
generate: {
dir: 'app',
},
/*
** Customize the progress-bar color
*/
loading: false,
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_productName,
meta: [{ hid: 'charset', charset: 'utf-8' }],
},
/*
** Nuxt rendering mode
*/
mode: 'spa',
/*
** Nuxt.js modules
*/
modules: [
[
'@nuxtjs/vuetify',
{
customVariables: ['~/assets/variables.scss'],
defaultAssets: false,
theme: {
themes: {
light: {
primary: '#ff4081',
secondary: '#424242',
accent: '#ff4081',
},
dark: {
primary: '#ff4081',
secondary: '#E0E0E0',
accent: '#ff4081',
},
},
},
},
],
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/electron-accelerator-formatter',
'~/plugins/electron-context-menu',
'~/plugins/event-bus',
'~/plugins/ipc',
'~/plugins/pretty-bytes',
'~/plugins/vuex-persistedstate',
],
/*
** Router configuration
*/
router: {
mode: 'hash',
},
/*
** Source directory
*/
srcDir: 'src',
/*
** Vue configuration
*/
vue: {
config: {
productionTip: false,
},
},
}