All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generator.client.react.vite.config.ts.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react(), tsconfigPaths()],
  build: {
    outDir: '../../../{{projectBuildDirectory}}/classes/static',
  },
  root: 'src/main/webapp',
  server: {
    port: 9000,
    hmr: { overlay: false },
    proxy: {
      '/api': {
        target: 'http://localhost:{{serverPort}}',
        changeOrigin: true,
      },
    },
  },
  define: {
    'process.env': {},
  },
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy