Re: [dev] suckless too to minify CSS, JS and html

From: Martin Tournoij <martin_AT_arp242.net>
Date: Fri, 18 May 2018 17:22:43 +0100

On Fri, May 18, 2018, at 16:46, Thuban wrote:
> Does anyone has advice for a suckless tool to minify JS, CSS and HTML
> files? I use sed for now, but it might not be the best solution.
>
> Furthermore, I was wondering what is the opinion of the list about
> minifying CSS, JS
> and html files?
> - Do you minify on your websites ? Why ?
> - What tool do you use to do so?

I wrote this a while ago: https://github.com/Carpetsmoker/singlepage

The main goal isn't really to "minify" files, as such – although it can
do that – but more to bundle them in a single page. This allows me to
use the same CSS for several HTML documents while still serving a single
HTML document without any external dependencies (a concept that I like).

As for my general thoughts on minification: use common sense. If you're
creating one of those pages with 3M of JavaScript then it probably makes
sense. If you're creating something more sane then it's probably just
wasted effort at best.
Received on Fri May 18 2018 - 18:22:43 CEST

This archive was generated by hypermail 2.3.0 : Fri May 18 2018 - 18:24:31 CEST