stop tracking ignored files
This commit is contained in:
parent
1b0ed556ee
commit
b1a4f3ec16
1993
src/routesConfig.jsx
1993
src/routesConfig.jsx
File diff suppressed because it is too large
Load Diff
|
|
@ -1,34 +0,0 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
|
||||
export default defineConfig(({ command, mode }) => {
|
||||
if (mode === "production") {
|
||||
return {
|
||||
plugins: [
|
||||
react(),
|
||||
// terser({ // Add terser plugin for production
|
||||
// compress: {
|
||||
// drop_console: true, // This removes all console.* statements
|
||||
// },
|
||||
// }),
|
||||
],
|
||||
base: "/apps/retail/",
|
||||
envDir: "src",
|
||||
envPrefix: "ENV_",
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
plugins: [react()],
|
||||
envDir: "src",
|
||||
envPrefix: "ENV_",
|
||||
server: {
|
||||
host: "192.168.1.50",
|
||||
port: process.env.PORT || 3015,
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["console.log"],
|
||||
},
|
||||
};
|
||||
}
|
||||
});
|
||||
Loading…
Reference in New Issue