Open coffebar opened 9 years ago
I'm having the same issue
As am I
And it's still an error
same here
Indeed same here
same here
+1
+1
+1
+1
+1
+1 ... Anyone got solution?
@jAddict7, I use middleware, which contain following handle method:
public function handle($request, Closure $next)
{
$response = $next($request);
if ($response instanceof \Illuminate\Http\Response) {
$output = $response->getContent();
$output = preg_replace('/<!--([^\[|(<!)].*)/', '', $output);
$output = preg_replace('/(?<!\S)\/\/\s*[^\r\n]*/', '', $output);
// Clean Whitespace
// I've commented this line because it was cuting some html
// $output = preg_replace('/\s{2,}/', '', $output);
$output = preg_replace('/(\r?\n)/', '', $output);
$response->setContent($output);
}
return $response;
}
You can find this solution in the web
@peshkov3 Thank you .. I will give a try ...
Anyone got a solution for this issue?
I'm trying to use this https://github.com/fitztrev/laravel-html-minify/wiki/Laravel-5---5.1-HTML-Minifying
but something wrong
file: somethng like this