20 lines
		
	
	
		
			510 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			510 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { fileURLToPath, URL } from "node:url";
 | 
						|
import { defineConfig } from 'vite'
 | 
						|
import react from '@vitejs/plugin-react'
 | 
						|
 | 
						|
// https://vitejs.dev/config/
 | 
						|
export default defineConfig({
 | 
						|
  base: process.env.NODE_ENV === "production" ? "./" : "/",
 | 
						|
  build: {
 | 
						|
    outDir: "../solar_dist",
 | 
						|
    emptyOutDir: true,
 | 
						|
  },
 | 
						|
  plugins: [react()],
 | 
						|
  resolve: {
 | 
						|
    alias: {
 | 
						|
      "@": fileURLToPath(new URL("./src", import.meta.url)),
 | 
						|
      "@ASSET": fileURLToPath(new URL("./src/assets", import.meta.url)),
 | 
						|
    },
 | 
						|
  },
 | 
						|
})
 |