Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 453 Bytes

local_dev.md

File metadata and controls

16 lines (13 loc) · 453 Bytes

Local Dev

Prepare

  1. clone this repo.
  2. run npm install from this repo
  3. run npm install -g http-server from this repo

Local Run

  1. go to src/index.js, then find and enable localDev(); (the last line)
  2. run npm start
  3. run http-server ./models -p 3001 --cors

Build

  1. revert the previous the line change of local dev.
  2. run webpack --mode production
  3. copy 3d-model-loader.bundle.js from dist folder to js folder