A demo project for ycw/e2edce, showing how to eliminate deadcode for threejs appliaction.
πͺ GLSL sources are now minified using ycw/three-glsl-minifier)
π§ͺ Testbed
π’ Stats:
Logs Vector2
βββββββββββ¬βββββββββββ
β (index) β size β
βββββββββββΌβββββββββββ€
β flat β '5.93Kb' β
β dce β '1.63Kb' β
β min β '87b' β
β min+gz β '96b' β
βββββββββββ΄βββββββββββ
Rotating Cube
βββββββββββ¬βββββββββββββ
β (index) β size β
βββββββββββΌβββββββββββββ€
β flat β '701.97Kb' β
β dce β '409.01Kb' β
β min β '212.36Kb' β
β min+gz β '52.96Kb' β
βββββββββββ΄βββββββββββββ
Pick Rotating Cube
βββββββββββ¬βββββββββββββ
β (index) β size β
βββββββββββΌβββββββββββββ€
β flat β '705.10Kb' β
β dce β '423.65Kb' β
β min β '220.12Kb' β
β min+gz β '55.19Kb' β
βββββββββββ΄βββββββββββββ
webgl_shaders_ocean.html
βββββββββββ¬βββββββββββββ
β (index) β size β
βββββββββββΌβββββββββββββ€
β flat β '788.71Kb' β
β dce β '568.86Kb' β
β min β '297.01Kb' β
β min+gz β '77.73Kb' β
βββββββββββ΄βββββββββββββ
cannon-es/examples/threejs_mousepick
βββββββββββ¬βββββββββββββ
β (index) β size β
βββββββββββΌβββββββββββββ€
β flat β '957.42Kb' β
β dce β '624.32Kb' β
β min β '290.34Kb' β
β min+gz β '74.79Kb' β
βββββββββββ΄βββββββββββββ
- Clone this repo
- Install deps,
npm i
- Create builds,
npm run build
- Boot http server,
npm run serve
- Check testbed at
http://localhost:8080
To test your own codes:
- Put your codes in
src/foo.js
- Write tests in
tests/foo.js
- Config e2edce in
e2edce.config.js
- Create build,
npm run build
- Check result at
http://localhost:8080/public/foo/index.html