Threejs + Vite Vanilla js for starter pack who don't want to worry about how to setup things module and install plugin
npm install // Install all packagenpm run dev // Open your local host server1. Transfer you project from Window Filsystem" to "Linux FileSystem" and then try to run npm run dev it again
2. Create file vite.config.js and then save and run npm run dev it again reason it's because of SubSystem for Linux (WSL2) Limitation
import { defineConfig } from 'vite'
export default defineConfig({
root: './src',
publicDir: '../public',
build:
{
outDir: '../dist',
emptyOutDir: true,
sourcemap: true
},
server: {
watch: {
usePolling: true // Change it's to true
}
}
})- WSL2 Linux Subsystem
- Windows OS
- Mac
ALL Assets public folder