-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (29 loc) · 745 Bytes
/
vite.config.ts
File metadata and controls
30 lines (29 loc) · 745 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
import { vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import {expressDevServer} from "remix-express-dev-server";
import { envOnlyMacros } from "vite-env-only";
export default defineConfig({
plugins: [
remix({
ignoredRouteFiles: ["**/*.css"],
}),
tsconfigPaths(),
expressDevServer({
exportName: 'server'
}),
envOnlyMacros(),
],
build: {
target: 'esnext'
},
resolve: {
alias: {
"~/": "./app",
"@domain/": "./app/.server/domain",
"@infrastructure/": "./app/.server/infrastructure",
"@application/": "./app/.server/application",
"@shared/": "./app/.server/shared"
}
}
});