forked from sanger/sequencescape
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
20 lines (19 loc) · 818 Bytes
/
vite.config.ts
File metadata and controls
20 lines (19 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from "vite";
import { resolve, join } from "path";
import RubyPlugin, { projectRoot } from "vite-plugin-ruby";
import { createVuePlugin } from "vite-plugin-vue2";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
build: { emptyOutDir: true },
plugins: [RubyPlugin(), createVuePlugin(), legacy({ targets: ["defaults"] })],
resolve: {
alias: {
"@": resolve(join(projectRoot, "app/frontend")),
"@sharedComponents": resolve(join(projectRoot, "app/frontend/shared/components")),
"@images": resolve(join(projectRoot, "app/frontend/images")),
// See config/vite.rb for where these are set
// https://vite-ruby.netlify.app/config/#ruby-configuration-file-💎
"@formtastic": process.env.FORMTASTIC_STYLESHEET_PATH,
},
},
});