benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
338 stars 205 forks source link

Feature: Console command to compile the assets #1509

Open oliverklee opened 1 month ago

oliverklee commented 1 month ago

Feature Request

Is your feature request related to a problem?

When I first load the page after a new deployment, it takes quite some time to load the page as the CSS/JS needs to be rebuilt. This causes a delay in loading the page, and if the first visitor after a deployment is some visitor instead of me, they might leave.

Also, this sometimes runs into some server timeouts, causing not all assets to be build. Then the page is without CSS, and even hard-reloading it does not cause the assets to get built. I'll need to clear all caches and then reload in order to trigger an asset rebuild.

Describe the solution you'd like

A Console command that builds all Bootstrap assets, and that I can include into my deployment script to be run before the symlink is flipped.

Describe alternatives you've considered