repod/vite.config.ts
Michel Roux 2dd9578257
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m23s
repod / release (push) Has been skipped
style: 💄 css not inline
2024-10-17 16:29:49 +02:00

26 lines
518 B
TypeScript

import { join, resolve } from 'path'
import { createAppConfig } from '@nextcloud/vite-config'
import { defineConfig } from 'vite'
import vueDevTools from 'vite-plugin-vue-devtools'
const config = defineConfig(({ mode }) => ({
build: {
sourcemap: false,
},
define: {
__VUE_PROD_DEVTOOLS__: mode !== 'production',
},
plugins: [vueDevTools()],
}))
export default createAppConfig(
{
main: resolve(join('src', 'main.ts')),
},
{
config,
createEmptyCSSEntryPoints: true,
thirdPartyLicense: false,
},
)