News for hackers. Stuff that matters.
Re:Today’s Javascript, from an outsider’s perspective by runawaybottle on Monday May 25, 2020 @09:34PM (#23306635)
JS gets shit on a lot, but I think npm install with a package.json is kind of one of the easier setups.
Re:Today’s Javascript, from an outsider’s perspective by zdragnar on Monday May 25, 2020 @09:51PM (#23306717)
Eh, yes and no- that only gets you started if someone else already picked modules for you. Snowpack and such make modern ES modules with npm bearable, but the sheer volume of modules that rely on webpack's preprocessing bastardization of the module system is really depressing. I really wish they had used comment directives or something other than the import statement for things like attaching CSS files to builds.
Re:Today’s Javascript, from an outsider’s perspective by de_watcher on Tuesday May 26, 2020 @02:08AM (#23307926)
> Snowpack

oh look, another one

Re:Today’s Javascript, from an outsider’s perspective by zdragnar on Tuesday May 26, 2020 @06:35AM (#23309377)
shrug it basically just copies files out of node_modules to another folder for sane browser use of module imports (no concatenation or build process). Basically, for people who liked bower but are stuck with npm.

I've used it for some personal projects, but doubt that I'll use it for anything paid anytime soon.