2024-08-09 10:10:58 +00:00
|
|
|
import { createAppConfig } from '@nextcloud/vite-config'
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
2024-08-09 14:50:24 +00:00
|
|
|
const config = defineConfig(({ mode }) => ({
|
2024-08-09 10:10:58 +00:00
|
|
|
build: {
|
2024-08-09 14:50:24 +00:00
|
|
|
rollupOptions: {
|
|
|
|
output: {
|
|
|
|
entryFileNames: 'js/[name].js',
|
|
|
|
format: 'iife',
|
|
|
|
manualChunks: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sourcemap: mode === 'development',
|
2024-08-09 10:10:58 +00:00
|
|
|
},
|
2024-08-09 14:50:24 +00:00
|
|
|
}))
|
2024-08-09 10:10:58 +00:00
|
|
|
|
|
|
|
export default createAppConfig(
|
|
|
|
{
|
|
|
|
main: 'src/main.js',
|
|
|
|
},
|
|
|
|
{ config },
|
|
|
|
)
|