...
Using DST-NCalc for comparison , after running npm audit fix
:
...
The main difference between Vite and CRA and Vite is the use of .jsx
files instead of .js
. Other than that, React development remains largely the same.
However, note that Here’s the vite.config.js file needs slight modifications from Wieruch’s example to work with our Kubernetes setup. Here’s the configuration for VegSpecDST-ECON:
Code Block | ||
---|---|---|
| ||
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], server: { open: true, watch: { usePolling open: true, }, hostbuild: true,{ // needed for the Docker Container port mapping to work strictPort: true, port: 3000, }, build: { outDir: '/usr/src/app/build', }, assetsInclude: ['**/*.xlsx'], }); |