forked from Mitcheljager/workshop.codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.mjs
32 lines (31 loc) · 1.11 KB
/
vite.config.mjs
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
import { defineConfig } from "vite"
import { svelte } from "@sveltejs/vite-plugin-svelte"
import { resolve } from "path"
import RubyPlugin from "vite-plugin-ruby"
import FullReload from "vite-plugin-full-reload"
import sassGlobImports from "vite-plugin-sass-glob-import"
export default defineConfig({
css: {
devSourcemap: true
},
plugins: [
RubyPlugin(),
FullReload(["config/routes.rb", "app/views/**/*"]),
svelte(),
sassGlobImports()
],
resolve: {
alias: {
"@scss": resolve(__dirname, "app/javascript/scss"),
"@images": resolve(__dirname, "app/javascript/images"),
"@fonts": resolve(__dirname, "app/javascript/fonts"),
"@test": resolve(__dirname, "app/javascript/test"),
"@src": resolve(__dirname, "app/javascript/src"),
"@components": resolve(__dirname, "app/javascript/src/components"),
"@constants": resolve(__dirname, "app/javascript/src/constants"),
"@lib": resolve(__dirname, "app/javascript/src/lib"),
"@utils": resolve(__dirname, "app/javascript/src/utils"),
"@stores": resolve(__dirname, "app/javascript/src/stores")
}
}
})