File size: 475 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import path from 'path'
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'

export default defineConfig({
  resolve: {
    alias: {
      '@react-spring/web': path.resolve(__dirname, '../targets/web'),
      '@react-spring/parallax': path.resolve(__dirname, '../packages/parallax'),
      '@react-spring/three': path.resolve(__dirname, '../targets/three'),
    },
  },
  server: {
    port: 4000,
  },
  plugins: [reactRefresh()],
})