loading...

Minifying web files?

ghost profile image Ghost ・1 min read

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?

Discussion

markdown guide
 

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?

 

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.