sanger/limber

View on GitHub
vite.config.mjs

Summary

Maintainability
Test Coverage
import { defineConfig } from 'vite'
import RubyPlugin from 'vite-plugin-ruby'
import vue from '@vitejs/plugin-vue2' // TODO: replace with @vitejs/plugin-vue for Vue 3

export default defineConfig({
  build: {
    target: 'chrome65',
  },
  plugins: [RubyPlugin(), vue()],
  test: {
    globals: true,
    environment: 'jsdom',
    coverage: {
      provider: 'v8',
      reporter: ['lcov', 'text'],
    },
    // This hides the "Download the Vue Devtools extension" message from the console
    onConsoleLog(log) {
      if (log.includes('Download the Vue Devtools extension')) return false
    },
  },
})