-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathvite.config.js
More file actions
36 lines (35 loc) · 871 Bytes
/
vite.config.js
File metadata and controls
36 lines (35 loc) · 871 Bytes
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
import { defineConfig } from "vite";
import { resolve, join } from "path";
import RubyPlugin, { projectRoot } from "vite-plugin-ruby";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
build: {
emptyOutDir: true,
target: ["chrome65", "es2019"],
},
css: {
preprocessorOptions: {
scss: {
quietDeps: true,
silenceDeprecations: ["import", "color-functions", "global-builtin"],
verbose: false,
},
},
},
plugins: [RubyPlugin(), legacy({ targets: ["defaults"] })],
resolve: {
alias: {
"@": resolve(join(projectRoot, "app/frontend")),
"@images": resolve(join(projectRoot, "app/frontend/images")),
},
},
test: {
autoBuild: false,
globals: true,
environment: "jsdom",
coverage: {
provider: "v8",
reporter: ["lcov", "text"],
},
},
});