Files
therinaldos.com/wedding-pics/apps/logreader/vite.config.ts
T
david ef1ff240d4
Build & Deploy to DigitalOcean Space / build (push) Failing after 2m38s
migrate therinaldos.com data
2024-05-05 15:50:45 -04:00

25 lines
687 B
TypeScript

import type { UserConfig } from 'vitest/config'
import { createAppConfig } from '@nextcloud/vite-config'
const config = createAppConfig({
main: 'src/index.ts',
}, {
// Build the css/logreader-style.css instead of inlineing the styles in the js bundle
inlineCSS: false,
assetFileNames: (info) => info.name === 'index.css' ? 'css/logreader-main.css' : undefined,
// Configuration for vitest unit tests
config: {
test: {
coverage: {
include: ['src/**'],
provider: 'istanbul',
reporter: ['lcov', 'text'],
},
environment: 'happy-dom',
alias: [{ find: /^vue$/, replacement: 'vue/dist/vue.runtime.common.js' }],
},
} as UserConfig,
})
export default config