- clone this repo.
- run npm install from this repo
- run npm install -g http-server from this repo
- go to src/index.js, then find and enable
localDev();
(the last line) - run
npm start
- run
http-server ./models -p 3001 --cors
- 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