revert context on __root beforeLoad refactor project structure refactor role badge dynamic nav menu
33 lines
897 B
TypeScript
33 lines
897 B
TypeScript
import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { devtools } from '@tanstack/devtools-vite';
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
import viteReact from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import viteTsConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
const config = defineConfig({
|
|
// server: {
|
|
// host: true,
|
|
// },
|
|
plugins: [
|
|
paraglideVitePlugin({
|
|
project: './project.inlang',
|
|
outdir: './src/paraglide',
|
|
outputStructure: 'message-modules',
|
|
cookieName: 'PARAGLIDE_LOCALE',
|
|
strategy: ['cookie', 'baseLocale'],
|
|
}),
|
|
devtools(),
|
|
// this is the plugin that enables path aliases
|
|
viteTsConfigPaths({
|
|
projects: ['./tsconfig.json'],
|
|
}),
|
|
tailwindcss(),
|
|
tanstackStart(),
|
|
viteReact(),
|
|
],
|
|
});
|
|
|
|
export default config;
|