rejectedsoftware / diet-ng

Compile-time indentation based, XML structured template system
MIT License
44 stars 24 forks source link

Minifying CSS and Javascript templates #26

Open andrewbenton opened 7 years ago

andrewbenton commented 7 years ago

As a user and developer, I find that hand-written CSS and JS, both from files and filters, have a relatively heavy load compared to the already condensed HTML that diet produces. I would like to be able to emit minified CSS and JS to the page. Even something to strip indentation and spaces would contribute a lot.

azbukagh commented 7 years ago

You can use external tool for this. There is preBuildCommands in dub.json, which are runned before building.

diet is just an another way to write HTML. It has nothing to do with CSS or JS.

andrewbenton commented 7 years ago

That's true, but being able to do the minification at runtime would also be useful and make the library more friendly to non-expert users of dub.