Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
my webpack build once stopped working and I couldn't figure out why
so I spent 6 hours typing like a speed demon because I needed this website working and rewrote the whole thing from scratch
it worked
and I don't know why -
retoor10475dI'm still vouching for writing your own webpack. It's a fun project. But anyway, is webpack really needed, it can work without too right?
-
-
retoor10474d@jestdotty that stupid thing just joins all javascript together and thats it right? Can say i say something weird, i'm testing my deretoor service.
-
@retoor
Once you start making one (instead of pretending how simple everything is), you will quickly realize how "just joining files" isn't gonna work
And gl making it spec-compliant + compatible with cjs/esm for any code, not just a small subset -
@retoor it compiles frontends
it will also recompile when you change your code and give you stacktraces
and you ofc end up having to compile a lot of stuff, and also mount file systems or something. or filter only serving certain file types. or propagate environment variables based on random junk
frontends also have plugins, and they only document how to be used with webpack. dunno
it's too late now. it's all webpack now
I'm sure there's stuff I'm forgetting also
you just have to set it up once unless webpack updates or you need a new feature or system propagation for some feature though. I just copy paste the file and update it. oh yeah like favicons and page titles and stuff also. but that's just nonsense. you can do that in a template easy enough but instead we do it in webpack's html plugin!
oh yeah they also do image compression I guess. or maybe I'm wrong about that. meh. WELL. think it was in there but it looked complicated so I didn't set it up
Still struggling with the whole webpack project. We agreed on just doing style for now. (Which also need to be updated but that a whole other drama)
Fucking hate my life right now. Its 16:00 so time for beer and games. And holidays. Have a good holidays here everyone. I cant wait to come back to this shit in 2025.
rant