Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update use-blade-icons.md #498

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion sage/use-blade-icons.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
date_modified: 2023-01-27 13:17
date_modified: 2024-04-24 13:00
date_published: 2022-03-18 20:49
description: How to use the blade-icons package with Sage 10.
title: How to use blade-icons
authors:
- altan
- ben
---

Expand Down Expand Up @@ -85,6 +86,19 @@ Now Heroicons can be referenced in any of the supported methods from inside your
{{ svg('heroicon-s-menu) }}
```

## Caching icons in production

It's recommended to enable icon caching to optimize performance by running `wp acorn icons:cache` during deployment.

If you are using Trellis, modify the `deploy_build_after` hook within your `deploy-hooks/build-after.yml` file:

```yml
- name: Cache Blade UI Icons
command: wp acorn icons:cache
args:
chdir: "{{ deploy_helper.new_release_path }}"
```

## Additional information

The [blade-icons README](https://github.com/blade-ui-kit/blade-icons) covers how to pass attributes, set default classes, and more.