2024-10-17 16:29:49 +02:00
|
|
|
import { join, resolve } from 'path'
|
2024-08-09 12:10:58 +02:00
|
|
|
import { createAppConfig } from '@nextcloud/vite-config'
|
|
|
|
import { defineConfig } from 'vite'
|
2024-08-22 17:34:27 +02:00
|
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
2024-08-09 12:10:58 +02:00
|
|
|
|
2024-08-09 16:50:24 +02:00
|
|
|
const config = defineConfig(({ mode }) => ({
|
2024-08-09 12:10:58 +02:00
|
|
|
build: {
|
2024-09-15 14:33:37 +02:00
|
|
|
sourcemap: false,
|
2024-08-09 12:10:58 +02:00
|
|
|
},
|
2024-08-22 17:34:27 +02:00
|
|
|
define: {
|
2024-09-02 14:43:39 +02:00
|
|
|
__VUE_PROD_DEVTOOLS__: mode !== 'production',
|
|
|
|
},
|
2024-08-22 17:34:27 +02:00
|
|
|
plugins: [vueDevTools()],
|
2024-08-09 16:50:24 +02:00
|
|
|
}))
|
2024-08-09 12:10:58 +02:00
|
|
|
|
|
|
|
export default createAppConfig(
|
|
|
|
{
|
2024-10-17 16:29:49 +02:00
|
|
|
main: resolve(join('src', 'main.ts')),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
createEmptyCSSEntryPoints: true,
|
|
|
|
thirdPartyLicense: false,
|
2024-08-09 12:10:58 +02:00
|
|
|
},
|
|
|
|
)
|