fahlisaputra / laravel-minify

Minify your blade views, html, css and obfuscate js files on the fly. Lightweight minifier for your Laravel project.
MIT License
76 stars 17 forks source link

Warning type MIME (“text/plain”) #9

Closed Laguna001 closed 9 months ago

Laguna001 commented 10 months ago

Hello

The following warning appears when referencing a js file

The script “http://localhost/_minify/js/layouts/events.js” was loaded even though its type MIME (“text/plain”) is not a valid JavaScript MIME type.

Thank you for your support

Laguna001 commented 10 months ago

$mime = preg_match("/.js$/", $file)?"application/javascript": mime_content_type($path);

fahlisaputra commented 9 months ago

Thank you for reporting this issue

fahlisaputra commented 9 months ago

Fixed on newer version. Please let me know if any issue happens. Thank you.