oveleon/contao-theme-compiler-bundle
Contao Theme Compiler Bundle adds an automated workflow for compiling and managing theme assets in Contao. It helps build CSS/JS from sources, handles bundling and output paths, and streamlines deploying optimized assets for your site’s frontend.
The contao theme compiler bundle adds the functionality to compile selected scss files within your theme settings.
composer require oveleon/contao-theme-compiler-bundle
Search for contao theme compiler bundle and add it to your extensions.
Create a theme and add source file/s in your theme settings
Add a destination folder for your source files
(Optional settings for combining your files and more)
Save

Compile in your theme-settings, within your theme overview, under maintenance or via console command

php vendor/bin/contao-console contao:themecompiler:compile [id]
tl_themephp vendor/bin/contao-console contao:themecompiler:list
php vendor/bin/contao-console contao:themecompiler:compile [id]
Version 1.8 has been rewritten to skip the DBAFS sync if the files already exist. This saves a database call and logic for each output file and improves compilation time.
To enable the old behaviour, use following in your config.yaml
# config/config.yml
contao_theme_compiler:
file_sync: true
How can I help you explore Laravel packages today?