frontAnswerer/vite.config.widget.ts
Nastya 4469aeb83a
All checks were successful
Deploy / CreateImage (push) Successful in 4m39s
Deploy / DeployService (push) Successful in 28s
--
2025-07-01 12:37:09 +03:00

29 lines
765 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { alias } from "./vite.config";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias,
},
build: {
minify: true, // Включаем минификацию как в обычной сборке
sourcemap: false, // Отключаем sourcemaps как в обычной сборке
copyPublicDir: false,
rollupOptions: {
input: "src/widget.tsx",
output: {
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
assetFileNames: "[name].[ext]",
},
},
outDir: "widget",
},
define: {
"process.env": process.env,
},
});