Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Contao Theme Compiler Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Theme-Compiler

The contao theme compiler bundle adds the functionality to compile selected scss files within your theme settings.

Features

  • Compiles your scss files in your contao installation
  • A compile button next to your themes
  • Able to add multiple source files
  • Able to compile multiple files into one
  • Enable backups for your compiled scss

How to install the package

Via composer

composer require oveleon/contao-theme-compiler-bundle

Via contao-manager

Search for contao theme compiler bundle and add it to your extensions.

Initial setup

  1. Create a theme and add source file/s in your theme settings

  2. Add a destination folder for your source files

  3. (Optional settings for combining your files and more)

  4. Save

    Admin View: Advanced form overview

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

    Admin View: Advanced form overview Admin View: Advanced form overview

    php vendor/bin/contao-console contao:themecompiler:compile [id]
    

Console commands

List themes

  • Outputs a list of your themes within tl_theme
php vendor/bin/contao-console contao:themecompiler:list

Compile theme

  • Compiles a theme ([id] is mandatory):
php vendor/bin/contao-console contao:themecompiler:compile [id]

Miscellaneous

Enable file sync on every compilation

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table