-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathvite.config.mjs
More file actions
40 lines (38 loc) · 802 Bytes
/
vite.config.mjs
File metadata and controls
40 lines (38 loc) · 802 Bytes
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
/**
* SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createAppConfig } from '@nextcloud/vite-config'
import { resolve } from 'node:path'
export default createAppConfig({
main: resolve('src/main.ts'),
init: resolve('src/init.ts'),
tab: resolve('src/tab.ts'),
settings: resolve('src/settings.ts'),
external: resolve('src/external.ts'),
validation: resolve('src/validation.ts'),
}, {
config: {
server: {
port: 3000,
host: '0.0.0.0',
},
resolve: {
alias: {
'@': resolve(import.meta.dirname, 'src'),
},
},
plugins: [
{
name: 'vue-devtools',
config(_, { mode }) {
return {
define: {
__VUE_PROD_DEVTOOLS__: mode !== 'production',
},
}
},
},
],
},
})