Closed Elhebert closed 3 years ago
Just added basic tests and cleaned up after removing the blade directive.
I also updated the API a little bit and moved the mix
part as an attribute to you have the same component for asset
and mix
which is less maintenance 🤔
<x:sri.script src="/public/js/app.js" />
<!-- <script src="{{ asset("/public/js/app.js") }}" integrity= "..." /> -->
<x:sri.script src="/public/js/app.js" mix />
<!-- <script src="{{ mix("/public/js/app.js") }}" integrity= "..." /> -->
<x:sri.link href="/public/css/app.css" rel="stylesheet" />
<!-- <link href="{{ asset("/public/css/app.css") }} rel="stylesheet" integrity= "..." /> -->
<x:sri.link href="/public/css/app.css" rel="stylesheet" mix />
<!-- <link href="{{ mix("/public/css/app.css") }} rel="stylesheet" integrity= "..." /> -->
I decided to drop Laravel 7 support. I had to many issues with the tests.
I also added a @once
directive around the component to never re-render the component more than once.
I finally found some time to draft a PR for the blade component.
For more details check #57
It's a first draft, but here's what the API could look like. This would simplify the usage of the package.