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

[Proposal] Minify/compress views #1449

Closed
dgeorgiev opened this issue May 29, 2013 · 6 comments
Closed

[Proposal] Minify/compress views #1449

dgeorgiev opened this issue May 29, 2013 · 6 comments

Comments

@dgeorgiev
Copy link

Hello everyone,
This is my first Laravel project, I'm migrating from codeigniter, so before I decided to use Laravel for one project I checked first the codeigniter 3 beta, and I have found one feature that I miss in Laravel, to be able to set in config to automatically minify/compress all the views for better performance.
I wanna ask you if there is a way to make it happen in Laravel 4, I have searched in packagist but I didn't found a package for this.

@franzliedke
Copy link
Contributor

This question is probably better suited for the forums.

You can checkout Jason Lewis' Basset library, though.

@dgeorgiev
Copy link
Author

I have checked but it is also for css/js assets, I'm asking for html compression directly from views I think is a good addition for speeding an app.

@Anahkiasen
Copy link
Contributor

I think he means compressing the views, not the assets, not ?

@WMeldon
Copy link
Contributor

WMeldon commented May 29, 2013

This is mostly a moot point if you use gzip (which is a good idea), but it's a pretty trivial thing to do. See this example on how to do it.

@dgeorgiev
Copy link
Author

Yes the views, not the assets.
I'm using gzip but i think its even better with compresed html, I will check the example thanks.

@taylorotwell
Copy link
Member

Probably not something we would be implementing at the framework level. A package could do it though.

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

5 participants