fix: availability of env variables
This commit is contained in:
parent
fa45559127
commit
f74c10d4aa
10 changed files with 78 additions and 10 deletions
|
@ -41,4 +41,20 @@ export default defineConfig({
|
|||
$: fileURLToPath(new URL("./docs", import.meta.url)),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
// Define the main output bundle (e.g., for your application)
|
||||
entryFileNames: "[name]-[hash].js",
|
||||
// Define the directory where the main bundle should be output
|
||||
dir: "dist",
|
||||
// Create a separate output bundle for your specific file
|
||||
manualChunks(id) {
|
||||
if (id.endsWith("src/config.ts")) {
|
||||
return "config"; // This will create a separate bundle for config-[hash].js
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue