File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,17 @@ directory using the `ux:icons:import` command:
52
52
bin/console ux:icons:import flowbite:user-solid flowbite:home-solid
53
53
```
54
54
55
+ > [ !NOTE]
56
+ > Imported icons must be committed to your repository.
57
+
58
+ #### On-Demand VS Import
59
+
60
+ While _ on-demand_ icons are great during development, they require http requests to fetch the icon
61
+ and always use the _ latest version_ of the icon. It's possible the icon could change or be removed
62
+ in the future. Additionally, the cache warming process will take significantly longer if using
63
+ many _ on-demand_ icons. You can think of importing the icon as _ locking it_ (similar to how
64
+ ` composer.lock ` _ locks_ your dependencies).
65
+
55
66
## Usage
56
67
57
68
``` twig
@@ -91,6 +102,9 @@ This command looks in all your twig templates for `ux_icon` calls and caches the
91
102
> During development, if you modify an icon, you will need to clear the cache (` bin/console cache:clear ` )
92
103
> to see the changes.
93
104
105
+ > [ !TIP]
106
+ > If using ` symfony/asset-mapper ` , the cache is warmed automatically when running ` asset-map:compile ` .
107
+
94
108
## Full Default Configuration
95
109
96
110
``` yaml
@@ -103,7 +117,7 @@ ux_icons:
103
117
# Default:
104
118
fill : currentColor
105
119
106
- # Configuration for the Iconify.design functionality .
120
+ # Configuration for the "on demand" icons powered by Iconify.design.
107
121
iconify :
108
122
enabled : true
109
123
You can’t perform that action at this time.
0 commit comments