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

Minification does not work :( #177

Open
Ahtnezev opened this issue Jun 12, 2023 · 3 comments
Open

Minification does not work :( #177

Ahtnezev opened this issue Jun 12, 2023 · 3 comments

Comments

@Ahtnezev
Copy link

Ahtnezev commented Jun 12, 2023

Laravel Framework 9.52.4
PHP 8.1.18
Composer version 2.3.7 2022-06-06
Livewire 2.x

Hi, I have a problem when viewing the minified blade files, I don't know if it's 'cause I'm using Livewire? thanks
already tried with view:clear command and config:clear and force => true

@core45
Copy link

core45 commented Sep 15, 2023

The same here. I've installed the package and follow every step and this package does totally NOTHING. Nothing like view:clear or set "force" to true doesn't help.

Laravel 9.52.15
PHP 8.1.23

@jvitasek
Copy link

The same here. I've installed the package and follow every step and this package does totally NOTHING. Nothing like view:clear or set "force" to true doesn't help.

Laravel 9.52.15 PHP 8.1.23

did you add the middleware to the routes? that actually does the HTML minification

@renaudberthier
Copy link

Found it, you need to modify app/Http/Kernel.php file to make it work:

protected $middleware = [
    ...
    \HTMLMin\HTMLMin\Http\Middleware\MinifyMiddleware::class
];

Documentation: https://laravel.com/docs/10.x/middleware
Can someone update the documentation?

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

4 participants