-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
Copy pathquasar.config.js
102 lines (88 loc) · 2.2 KB
/
quasar.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
const { join } = require('path')
module.exports = function (ctx) {
return {
eslint: {
fix: true,
warnings: true,
errors: true
},
boot: [
ctx.mode.ssr ? { path: 'ssr-client', server: false } : ''
],
css: [],
extras: [
'ionicons-v4',
'mdi-v6',
'fontawesome-v6',
'eva-icons',
'themify',
'line-awesome',
'bootstrap-icons',
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
'roboto-font',
'material-symbols-outlined',
'material-symbols-rounded',
'material-symbols-sharp',
'material-icons-outlined',
'material-icons-round',
'material-icons-sharp',
'material-icons'
],
framework: {
// iconSet: 'svg-mdi-v6',
// config: { ripple: { early: true } },
// config: {
// globalNodes: {
// class: 'mimi'
// }
// },
plugins: [
'AddressbarColor',
'AppFullscreen',
'AppVisibility',
'BottomSheet',
'Cookies',
'Dark',
'Dialog',
'Loading',
'LoadingBar',
'LocalStorage',
'Meta',
'Notify',
'Platform',
'Screen',
'SessionStorage'
]
},
build: {
vueRouterMode: 'history',
// needed otherwise we need to compile Quasar UI
// on each source file change:
devQuasarTreeshaking: true,
alias: {
'quasar/dist/quasar.sass': join(__dirname, '../src/css/index.sass'),
'quasar/icon-set': join(__dirname, '../icon-set'),
'quasar/lang': join(__dirname, '../lang'),
'quasar/src': join(__dirname, '../src')
},
extendViteConf (viteConf, { isServer }) {
viteConf.server = viteConf.server || {}
viteConf.server.fs = viteConf.server.fs || {}
viteConf.server.fs.allow = [ '..' ]
if (isServer) {
viteConf.resolve.alias.quasar = join(__dirname, '../src/index.ssr.js')
}
}
},
devServer: {
https: false,
// port: 8080,
open: true // opens browser window automatically
},
ssr: {
middlewares: [
'render' // keep this as last one
]
}
}
}