-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.mjs
More file actions
41 lines (40 loc) · 1 KB
/
vite.config.mjs
File metadata and controls
41 lines (40 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { defineConfig } from 'vite'
import RubyPlugin from 'vite-plugin-ruby'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite'
import { BootstrapVueNextResolver } from 'bootstrap-vue-next'
export default defineConfig({
build: {
target: 'chrome65',
},
css: {
preprocessorOptions: {
scss: {
quietDeps: true,
silenceDeprecations: ['import', 'color-functions', 'global-builtin'],
verbose: false,
},
},
},
plugins: [
RubyPlugin(),
vue(),
Components({
dts: false,
resolvers: [BootstrapVueNextResolver()],
}),
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './javascript/test_support/setup.js',
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
},
},
})