Skip to content

Commit

Permalink
Update use-blade-icons.md (#498)
Browse files Browse the repository at this point in the history
* Update use-blade-icons.md

Caching Icons for Production Deployment using Trellis

* Update use-blade-icons.md

---------

Co-authored-by: Ben Word <[email protected]>
  • Loading branch information
AltanS and retlehs authored Apr 24, 2024
1 parent 77a22d2 commit 17987ad
Showing 1 changed file with 15 additions and 1 deletion.
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.

0 comments on commit 17987ad

Please sign in to comment.