1.0.1
Release 1.0.1 – Changelog Summary
This release introduces first-class CSS purging support for Bootstrap, improves the SCSS compilation workflow, and refines the bundle naming and configuration for clearer integration. It focuses on better DX (developer experience) and more powerful, template-aware optimization of your Bootstrap CSS.
-
New Bootstrap Purge Command
Addedbootstrap:purgeto strip unused Bootstrap selectors based on your templates and code.
This helps you ship much smaller CSS bundles tailored to your actual usage. -
Template-Aware Purge Service
IntroducedPurgeServicethat scans directories/files (Twig, HTML, PHP, JS, etc.) and normalizes selectors before purging.
You get more accurate purging with robust selector extraction and clear statistics about what’s kept. -
Readable + Minified SCSS Outputs
bootstrap:compilenow writes both readable (bootstrap.css) and minified (bootstrap.min.css) CSS, with per-output source maps when enabled.
This gives you a great balance between debugging-friendly stylesheets and optimized production assets. -
Resilient SCSS Compiler Autoloading
The compile command now tries to loadscssphp/scssphpfrom the bundle’s own vendor directory and fails with clear guidance if the compiler is missing.
This makes local/bundle-from-source development easier to debug and set up. -
Bundle & Extension Renaming
The bundle class was renamed fromJBSNewMediaBootstrapBundletoBootstrapBundle, and the extension toBootstrapExtension, with matchingcomposer.jsonconfiguration.
This results in a cleaner, more conventional Symfony bundle naming scheme. -
Updated Dependencies & Bootstrap Baseline
Dependencies were tightened and updated, includingscssphp/scssphp,symfony/*andtwbs/bootstrap(now^5.3.8), plus a new dependency onjbsnewmedia/css-purger^1.0.2.
Users benefit from newer features, fixes, and guaranteed compatibility with the latest maintained Symfony and Bootstrap versions. -
Docs & Repository Hygiene
Removed a duplicate typo alias mention from the README and started ignoring/vendor/in version control.
This keeps docs aligned with real behavior and avoids committing third-party dependencies.
Compatibility: Breaking Change – bundle FQCN renamed to JBSNewMedia\BootstrapBundle\BootstrapBundle; update config/bundles.php and any direct references.
Full Changelog: 1.0.0...1.0.1