Skip to content

Commit

Permalink
fix: add production environment plugin to Vite configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Nov 19, 2024
1 parent 85aaee4 commit 8cd9904
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion portal/project-landingpage/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite';
import EnvironmentPlugin from 'vite-plugin-environment';


export default defineConfig({
plugins: [
EnvironmentPlugin({
Expand All @@ -12,6 +11,11 @@ export default defineConfig({
build: {
emptyOutDir: true,
rollupOptions: {
plugins: [
EnvironmentPlugin({
NODE_ENV: 'production',
}),
],
output: {
inlineDynamicImports: true,
},
Expand Down

0 comments on commit 8cd9904

Please sign in to comment.