Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minifying CSS and Javascript templates #26

Open
andrewbenton opened this issue Apr 3, 2017 · 2 comments
Open

Minifying CSS and Javascript templates #26

andrewbenton opened this issue Apr 3, 2017 · 2 comments

Comments

@andrewbenton
Copy link

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
Copy link

azbukagh commented Apr 3, 2017

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants