-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathvite.config.ts
More file actions
38 lines (35 loc) · 814 Bytes
/
vite.config.ts
File metadata and controls
38 lines (35 loc) · 814 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
/*!
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: CC0-1.0
*/
import { createAppConfig } from '@nextcloud/vite-config'
import { resolve } from 'node:path'
export default createAppConfig({
main: 'src/main.js',
'admin-settings': 'src/main-admin.js',
}, {
inlineCSS: { relativeCSSInjection: true },
config: {
build: {
cssCodeSplit: true,
},
test: {
coverage: {
include: ['src/**/*.ts', 'src/**/*.vue'],
provider: 'istanbul',
reporter: ['lcov', 'text'],
},
environment: 'jsdom',
setupFiles: resolve(__dirname, './tests/javascript/unit/setup.js'),
server: {
deps: {
inline: [
// Fix unresolvable .css extension for ssr
/@nextcloud\/vue/,
/@nextcloud\/dialogs/,
],
},
},
},
}
})