Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Js build update #163

Merged

Conversation

swingingtom
Copy link
Collaborator

Threejs has been put as being an external dependency.

  • It reduced the bundle size from ~590kb to ~64kb
  • It allows user to load the threejs library version they want, without multiple threejs version warning

Readme file has been updated with both jsm and js sections.

It may still lack an example with loading js library with <script> markup, but on threejs official site, they do not provide anymore documentation on how to use js library. Not sure it worth the shot, but im biaised.

This PR may provide sufficient changes to close #23 and #26 or at least a firt pass on this

@swingingtom swingingtom merged commit 3333914 into felixmariotto:master Mar 24, 2022
@swingingtom swingingtom deleted the feature/bundles-update branch March 24, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Webpack to output a minified bundle
1 participant