When I had everything in 1 file this way it worked, but since I am separating the project into several files, “it doesn’t work anymore,” … Does anyone know how to solve this problem? Do you know any tutorial?
As much as possible I don’t want to use npm since it considerably increases the size of the project since it links several files that if I later delete them to reduce the final size of the project they won’t work.
@gbz Hi thank you very much, I see that you used npm, is there a way to do it without npm?
you could record video showing how you make babylon modules work using typescript in different files, you don’t need to speak, I just want to see the process since I can’t do it.
What technologies did you use to make it work with NPM, would you recommend a tutorial?
@Ariel_Gimenez, Node and npm was only used to serve the index.html file and its assets. Please feel free to not use Node and npm and serve the files as you did before.
In package.json, you can see that
npm run build is rm -rf ./js && rm -rf ./dist && tsc && webpack
(This deletes the js/ and dist/ folders and compiles using TypeScript and webpack (for client-side browser compatibility)
npm run launch is node server.js
(server.js is a Node script that only uses the Express framework to serve an index.html page and its assets. Please feel free to serve your page without Node and using whichever method you prefer.)