kriswallsmith/assetic
Assetic is a PHP asset management framework for loading, filtering, combining, and dumping CSS/JS and other assets via collections and filters (LESS, YUI, etc.). Note: this repo is unmaintained; development continues at assetic-php/assetic (assetic/framework).
Sassphp filter) in v1.4.0 broadens its utility for projects still using Sass, though it remains less performant than Node.js-based alternatives.call_user_func_array edge cases persist).Sassphp filter reduces reliance on php-less but introduces new dependencies (league/sass-php). Conflicts with Laravel Mix/Vite remain unresolved.Sassphp is less mature than Node Sass/Dart Sass, risking bugs or performance issues.assetic:dump) is required but complicates CI/CD.Sassphp) may introduce security risks (e.g., CVE-2023-XXXX in league/sass-php).Sassphp sufficient, or are Node Sass/Dart Sass required for performance/critical features?Sassphp dependencies be managed in Docker/Kubernetes (e.g., league/sass-php extensions)?Sassphp (Libsass) alongside legacy filters (Less, UglifyJS). Requires league/sass-php (~4.11.0)..scss files, dynamic variables). Assess if Sassphp meets requirements.kriswallsmith/assetic and league/sass-php.config/assetic.php:
'bundles' => [
'app-sass' => [
'inputs' => ['resources/sass/app.scss'],
'filters' => ['sassphp'] // New in v1.4.0
]
]
AsseticBundle service providers in config/app.php.@assets Blade directives with custom helpers (e.g., asset('bundles/app-sass')).twig/twig:^1.27).league/sass-php and dependencies (e.g., libsass via PECL or system packages).RUN pecl install sass && docker-php-ext-enable sass
assetic.write_to to avoid production filesystem writes (e.g., storage/app/assetic).assetic.assets metadata.composer require kriswallsmith/assetic league/sass-php
config/assetic.php:
'filters' => [
'sassphp' => ['league/sass-php/Sass/Compiler'],
],
Route::get('/assets/{asset}', '\Assetic\Bundle\AsseticBundle\Controller\AssetController::assetAction');
@section('styles') with:
{{ HTML::style('bundles/app-sass') }}
php artisan assetic:dump --env=prod --no-debug
kriswallsmith/assetic and league/sass-php to specific versions (e.g., 2.9.0, ~4.11.0) to avoid breaking changes.league/sass-php for security updates (e.g., Libsass CVEs).Sassphp or fork if abandoned. Test with sass:compile CLI.Sassphp (e.g., syntax issues) may require deep dives into league/sass-php logs.assetic:dump in production.league/sass-php is slower than Dart Sass; consider pre-compiling critical assets.How can I help you explore Laravel packages today?