News for hackers. Stuff that matters.
Re:HTMx by tentacleuno on Thursday May 25, 2023 @11:13PM (#36079362)
You don't have to build JavaScript; it runs natively in the browser. In fact, the only time when you would have to consider a dedicated build step is if you were using something like TypeScript, or if you wish to use external modules. In the case of external modules, check out ES6's import syntax. You can import from a URL just like it's an NPM module. I believe a few CDNs are designed to facilitate this use-case too.
Re:HTMx by PaulHoule on Thursday May 25, 2023 @11:24PM (#36079430)
That's how I use D3.js. But for the React programs I work on at work we are already committed to a build process, there are bits of Typescript, SCSS, and for production at least tree-shaking and minimization seem a most for something with that many moving parts.
Re:HTMx by tentacleuno on Sunday May 28, 2023 @08:34PM (#36109267)
SCSS? Never used it myself -- normally CSS in JS. I definitely understand that it's hard to move away from big build processes though.