bokt/flarum-cache-assets

This package is abandoned and no longer maintained. The author suggests using the blomstra/cache-assets package instead.

Allows caching js and css ahead of any browser request.

Installs: 5 006

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 1

Open Issues: 0

Type:flarum-extension

0.5 2021-06-04 12:10 UTC

This package is auto-updated.

Last update: 2022-05-19 10:12:11 UTC


README

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