feat: i18n - vite plugin

This commit is contained in:
Andres 2023-10-21 07:32:15 +02:00
commit 7db15c26ab
3 changed files with 50 additions and 41 deletions

View file

@ -1,6 +1,7 @@
import process from "node:process";
import { defineConfig, searchForWorkspaceRoot } from "vite";
import react from "@vitejs/plugin-react";
import GenerateLocalesPlugin from "./vite-plugin-generate-locales.js";
export default defineConfig({
base: "/app",
@ -27,5 +28,5 @@ export default defineConfig({
outDir: "build",
chunkSizeWarningLimit: 1000,
},
plugins: [react()],
plugins: [react(), GenerateLocalesPlugin()],
});