Closed promatik closed 1 month ago
I agree it's a good change, and that it's a BC since it's only happening on the array of files that we have in the config, which is already split by type js/css. So this looks like an easy win. Why hasn't this been merged yet?!
@pxpm if you have any concerns feel free to revert.
WHY
BEFORE - What was wrong? What was happening before this PR?
Fixes https://github.com/Laravel-Backpack/basset/issues/116 along with https://github.com/Laravel-Backpack/basset/pull/117.
This will force the loaded scripts to be
js
type, and styles to becss
type.This way scripts like tailwind:
https://cdn.tailwindcss.com/3.4.3
which has no extension, can be rendered as a script.Test:
Is it a breaking change?
No, it will work with older code/version of Basset.
How can we test the before & after?
Load the
https://cdn.tailwindcss.com/3.4.3
script onscripts.blade.php
.