2024-08-09 10:10:58 +00:00
|
|
|
import { createAppConfig } from '@nextcloud/vite-config'
|
|
|
|
import { defineConfig } from 'vite'
|
2024-08-22 15:34:27 +00:00
|
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
2024-08-09 10:10:58 +00:00
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
},
|
2024-08-22 15:34:27 +00:00
|
|
|
sourcemap: mode !== 'production',
|
2024-08-09 10:10:58 +00:00
|
|
|
},
|
2024-08-22 15:34:27 +00:00
|
|
|
define: {
|
2024-09-02 12:43:39 +00:00
|
|
|
__VUE_PROD_DEVTOOLS__: mode !== 'production',
|
|
|
|
},
|
2024-08-22 15:34:27 +00:00
|
|
|
plugins: [vueDevTools()],
|
2024-08-09 14:50:24 +00:00
|
|
|
}))
|
2024-08-09 10:10:58 +00:00
|
|
|
|
|
|
|
export default createAppConfig(
|
|
|
|
{
|
|
|
|
main: 'src/main.js',
|
|
|
|
},
|
2024-09-12 20:10:10 +00:00
|
|
|
{ config, inlineCSS: true },
|
2024-08-09 10:10:58 +00:00
|
|
|
)
|