From 0feeb6dcaf5ae09f03c5d74508d05702fb15b6f6 Mon Sep 17 00:00:00 2001 From: Altan S Date: Mon, 5 Feb 2024 12:21:49 +0100 Subject: [PATCH 1/2] Update use-blade-icons.md Caching Icons for Production Deployment using Trellis --- sage/use-blade-icons.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sage/use-blade-icons.md b/sage/use-blade-icons.md index a3906a33..cc5a0eda 100644 --- a/sage/use-blade-icons.md +++ b/sage/use-blade-icons.md @@ -85,6 +85,17 @@ Now Heroicons can be referenced in any of the supported methods from inside your {{ svg('heroicon-s-menu) }} ``` +## Caching icons in production + +When deploying your Sage template using Trellis, it's recommended to enable icon caching to optimize performance. To do this, 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. From 42545d08816dd7f2d1079baa1c410f949394eb16 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 24 Apr 2024 12:39:08 -0500 Subject: [PATCH 2/2] Update use-blade-icons.md --- sage/use-blade-icons.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sage/use-blade-icons.md b/sage/use-blade-icons.md index cc5a0eda..cd9d5b3d 100644 --- a/sage/use-blade-icons.md +++ b/sage/use-blade-icons.md @@ -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 --- @@ -87,7 +88,9 @@ Now Heroicons can be referenced in any of the supported methods from inside your ## Caching icons in production -When deploying your Sage template using Trellis, it's recommended to enable icon caching to optimize performance. To do this, modify the `deploy_build_after` hook within your `deploy-hooks/build-after.yml` file. +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