Forem

Ghost
Ghost

Posted on

3 2

Minifying web files?

So, I've just gotten started with developing an actually useful website :o and I want to make sure that everyone is moderately able to load the page, even on a slow connection. Right now, I'm trying to figure out how I can simply minify the .js, .css and .html files for it, but I'm finding that there's a lot of tools that do each thing really well... but not one that just does everything.

I madly respect everyone that makes minify-ers, but I don't want 4 global node packages and 3 brew formulae just to minify the files.

Is their any one-size-fits-all minifying tool for the web?

Top comments (2)

Collapse
 
ben profile image
Ben Halpern

Hmmm that's a good question. I'd think this should be part of your deployment, something you don't have to think about unless you want to change. Perhaps part of CI?

Collapse
 
ghost profile image
Ghost

To be completely honest, I don't use a CI workflow - 99.9% of the time, I'm making the commits directly instead of going through a pull request, and since I'm deploying through GitHub Pages... any other ideas? I'm happy to run a command, but I don't want a huge list of 6 of them or whatever that I need to run every time I want to make a small change.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay