UPDATE: I got this procedure to work. For those who have the same issue, I’ll summarise the different solutions I’ve found:
Solution 1:
1.) Use a bundler like Webpack to consolidate all JS files.
2.) Create a repository in GitHub and push your project there together with the bundled file (place it in a dist folder).
3.) Use jsDelivr to create a CDN link based on the location of the bundled file in your repository (see their instructions)
4.) On Webflow, paste the script tag with the CDN link within the body tag. HTML can be placed using a custom code block or referencing an element with a ID (depends on your project). CSS can be placed within the head tag
Solution 2:
Another solution by @gui is to use PolygonJS. From his tutorial video, it’s easy and straightforward.
I guess it’s a matter of choosing the right solution for your project.
Additional resources that helped me get the solutions: