DEV Community

Discussion on: Do we really need to minify everything?

Collapse
 
deciduously profile image
Ben Lovy

You can use a locally installed CLI tool to run the minification, and add it to your build pipeline (or Makefile or shell script or whatever ya got).

That said, it's convenient to be able to use npm to hook everything up, and obviously node has html-minifier readily available. I've used it in projects with virtually no JavaScript just for the build tooling, it disappears in the deployed bundle.