40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
# Full configuration reference: https://symfony.com/bundles/ux-icons/current/index.html#configuration
|
|
ux_icons:
|
|
|
|
# Default HTML attributes to add to all icons
|
|
default_icon_attributes:
|
|
|
|
# Use current text color to fill the icon
|
|
fill: currentColor
|
|
|
|
# Default dimensions
|
|
height: '1em'
|
|
width: '1em'
|
|
|
|
# Throw an exception if an icon is not
|
|
ignore_not_found: false
|
|
|
|
|
|
when@dev:
|
|
ux_icons:
|
|
iconify:
|
|
# Persist each on-demand icon to disk on first render, so you don't forget to commit it before deploying (like `ux:icons:lock`)
|
|
auto_lock: true
|
|
|
|
when@prod:
|
|
ux_icons:
|
|
# Suppress exceptions for missing icons in production
|
|
ignore_not_found: true
|
|
iconify:
|
|
# Every icon this app uses is vendored under assets/icons/ by `ux:icons:import`, so
|
|
# nothing should ever be fetched at runtime -- and more importantly, nothing should be
|
|
# fetched during `asset-map:compile`, which is a deploy step. Left enabled it reaches
|
|
# api.iconify.design and fails the build on any host without outbound internet (it
|
|
# did exactly that: "Idle timeout reached for https://api.iconify.design/collections").
|
|
#
|
|
# Deliberately prod-only: in dev the on-demand fetch plus auto_lock above is what lets
|
|
# you write ux_icon('lucide:something') and have it downloaded and committed for you.
|
|
# The trade is that an icon nobody imported renders as nothing in prod, because
|
|
# ignore_not_found is on -- so import first, then use.
|
|
enabled: false
|