mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-21 06:13:33 +00:00
Compare commits
No commits in common. "main" and "v1.0.0-rc.0" have entirely different histories.
main
...
v1.0.0-rc.
@ -2,7 +2,11 @@ import react from "@vitejs/plugin-react-swc";
|
||||
import { resolve } from "path";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const devProxyServer = "http://localhost:8082/";
|
||||
let devProxyServer = "http://localhost:8082/";
|
||||
if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
|
||||
console.log("Use devProxyServer from environment: ", process.env.DEV_PROXY_SERVER);
|
||||
devProxyServer = process.env.DEV_PROXY_SERVER;
|
||||
}
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
@ -26,13 +30,4 @@ export default defineConfig({
|
||||
"@/": `${resolve(__dirname, "src")}/`,
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: "app.[hash].js",
|
||||
chunkFileNames: "assets/chunk-vendors.[hash].js",
|
||||
assetFileNames: "assets/[name].[hash][extname]",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user