repod/vite.config.ts
Michel Roux 943e2cf407
Some checks failed
repod / xml (push) Successful in 26s
repod / php (push) Failing after 40s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
refactor: ♻️ typescript ok, need tests
2024-09-13 16:33:48 +02:00

21 lines
429 B
TypeScript

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