Cache Assets
Allows caching js and css ahead of any browser request.
Cache Assets
This extension offers a command php flarum cache:assets
that allows you to compile and save Javascript, Css and locale Javascript/Css ahead of any user request to either the forum or admin.
This is an extension that is extremely suitable for Continuous Deployment scenarios.
Installation
Install with composer:
composer require blomstra/cache-assets:*
Go to your admin area and enable the extension.
Use the command
Run the php flarum cache:assets --help
command to see a list of all options, at least one flag is required for the command to do anything:
--js
to compile the javascript
--css
to compile the less/css
--locales
to compile css and js of the language packs
Links
Features
© 2023 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.