repod/vite.config.ts
Michel Roux fdee813bce
Some checks failed
repod / xml (push) Successful in 37s
repod / php (push) Successful in 54s
repod / nodejs (push) Failing after 56s
repod / release (push) Has been skipped
refactor: 🚧 introducing typescript (not working now)
2024-09-13 08:56:04 +02:00

26 lines
508 B
TypeScript

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