-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathvite.config.ts
More file actions
38 lines (35 loc) · 977 Bytes
/
vite.config.ts
File metadata and controls
38 lines (35 loc) · 977 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
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createAppConfig } from '@nextcloud/vite-config'
import { join } from 'path'
import { viteStaticCopy } from 'vite-plugin-static-copy'
// replaced by vite
declare const __dirname: string
export default createAppConfig({
files: join(__dirname, 'src', 'main-files.ts'),
filedrop: join(__dirname, 'src', 'main-filedrop.js'),
'settings-admin': join(__dirname, 'src', 'settings-admin.js'),
'settings-personal': join(__dirname, 'src', 'settings-user.js'),
}, {
extractLicenseInformation: {
includeSourceMaps: true,
},
config: {
plugins: [
viteStaticCopy({
targets: [{
src: join(__dirname, 'src', 'public-share.css'),
dest: 'css',
}],
}),
],
build: {
rollupOptions: {
// TODO: Remove when merged https://github.com/nextcloud/server/pull/56941
preserveEntrySignatures: 'strict',
},
},
},
})