PHP code example of heimrichhannot / contao-stylesheet-manager-bundle

1. Go to this page and download the library: Download heimrichhannot/contao-stylesheet-manager-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

heimrichhannot / contao-stylesheet-manager-bundle example snippets

<?= $this->stylesheets 
$GLOBALS['TL_STYLESHEET_MANAGER_CSS']
config.php

    
    
    namespace Acme\MyBundle\Compiler;
    
    class Less extends Compiler
    {
        //...
    }
    

    
    
    // Acme\MyBundle\Resources/contao/config.php
    
    $GLOBALS['STYLESHEET_MANAGER']['preprocessors']['less'] = [
        'class'                   => '\Acme\MyBundle\Compiler\Less',
        'bin'                     => '/usr/bin/less',
        'cmdDev'                  => '##lib## ...',
        'cmdProd'                 => '##lib## ...',
        'recursivelyWatchImports' => true
    ];
    

    $GLOBALS['STYLESHEET_MANAGER']['activePreprocessor'] = 'less';
    
$GLOBALS