Skip to content

webciter/RemoveExcessWhitespaceMiddleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

RemoveExcessWhitespaceMiddleware

Laravel Middleware that removes excess whitespace from Blade

I took a look at https://gist.github.com/garagesocial/6059962 and realized that i could compress the output from Laravel blade with Middleware, iv edited this code for my own purpose and improved the compression of the HTML by adding an additional pattern.

Note this Middleware will cause some issues with layout which rely on a single white space to provide a margin between elements.

You can fix this behviour by adding a margin of 1em or   to the effected elements

About

Laravel Middleware that removes excess whitespace from Blade

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages