icons:preload
to preload all icons on deployment.
Caveats
This command performs a recursive regex search on all the Blade files in your application (excludingnode_modules
and vendor
). This means that only icons
that are statically defined will be detected.
Will be found ✅ | Will not be found ❌ |
---|---|
<x-icon name="noto:unicorn" /> | <x-icon name="{{ $icon }}" /> |
<x-icon name="heroicons:clock" /> | <x-icon :name="$name" /> |
Icons whose name is dynamically defined will have to be fetched on-demand
the very first time they are rendered, and subsequent renders will be cached
all the same.