2024-03-18 15:37:44 +00:00
|
|
|
import {vitePlugin as remix} from "@remix-run/dev"
|
|
|
|
import {defineConfig} from "vite"
|
2024-03-12 12:42:17 +00:00
|
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
2024-03-18 15:37:44 +00:00
|
|
|
import {nodePolyfills} from 'vite-plugin-node-polyfills'
|
2024-03-05 16:56:17 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-03-18 15:37:44 +00:00
|
|
|
plugins: [
|
|
|
|
remix({
|
|
|
|
ssr: false,
|
|
|
|
ignoredRouteFiles: ["**/*.css"]
|
|
|
|
}),
|
|
|
|
tsconfigPaths(),
|
2024-03-18 15:57:38 +00:00
|
|
|
nodePolyfills({protocolImports: false}),
|
2024-03-18 15:37:44 +00:00
|
|
|
],
|
2024-03-18 17:02:48 +00:00
|
|
|
build: {
|
|
|
|
minify: false
|
|
|
|
},
|
2024-03-18 15:37:44 +00:00
|
|
|
server: {
|
|
|
|
fs: {
|
|
|
|
// Restrict files that could be served by Vite's dev server. Accessing
|
|
|
|
// files outside this directory list that aren't imported from an allowed
|
|
|
|
// file will result in a 403. Both directories and files can be provided.
|
|
|
|
// If you're comfortable with Vite's dev server making any file within the
|
|
|
|
// project root available, you can remove this option. See more:
|
|
|
|
// https://vitejs.dev/config/server-options.html#server-fs-allow
|
|
|
|
allow: [
|
|
|
|
"app",
|
|
|
|
"node_modules/@fontsource-variable/manrope",
|
|
|
|
]
|
|
|
|
}
|
2024-03-12 12:42:17 +00:00
|
|
|
}
|
|
|
|
})
|