Skip to content

Using gLTF-Transform on a client side webpage #722

Answered by donmccurdy
evanmcarlson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! The only distribution methods I'm "officially" supporting are this GitHub repository and the NPM package. There are lots of CDNs that re-host what they find on NPM, but most of them do not support packages with dependencies. So my strong recommendation, whenever possible, is to use a bundler (webpack, parcel, rollup, vite, etc.) to build your application and its dependencies. For gltf.report I use webpack, vite is also a great choice for web apps.

That said — if you needed to use a CDN, then skypack is probably the best in terms of dependency management:

import { Document, WebIO } from 'https://cdn.skypack.dev/@gltf-transform/core';
import { KHRONOS_EXTENSIONS } from 'https://cdn.skyp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by evanmcarlson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants