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
Use Bazaar or install manually with composer:
composer require bokt/flarum-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
Updating
composer require bokt/flarum-cache-assets
Links
Disclaimer
This extension is developed as an employee of @BartVB at Bokt. Bokt is the largest equine community in the Netherlands. We're currently moving a phpBB forum with over 100 million posts to Flarum. By keeping both in sync until we're more feature complete, we offer our users a slow transition to this fantastic new platform.