Local Dev
September 9, 2023 ยท View on GitHub
Prepare
- clone this repo.
- run npm install from this repo
- run npm install -g http-server from this repo
Local Run
- go to src/index.js, then find and enable
localDev();(the last line) - run
npm start - run
http-server ./models -p 3001 --cors
Build
- revert the previous the line change of local dev.
- run
webpack --mode production - copy 3d-model-loader.bundle.js from dist folder to js folder