webmamba / sass-bundle
Delightful Sass Support for Symfony + AssetMapper
Installs: 303
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webmamba/sass-bundle
Requires
- php: >=8.1
- symfony/asset-mapper: ^6.3
- symfony/console: ^5.4|^6.3
- symfony/http-client: ^5.4|^6.3
- symfony/process: ^5.4|^6.3
Requires (Dev)
- phpstan/phpstan: 1.11.x-dev
- symfony/filesystem: ^6.3
- symfony/framework-bundle: ^6.3
- symfony/phpunit-bridge: ^6.3
This package is not auto-updated.
Last update: 2023-09-15 16:59:50 UTC
README
This bundle make it easy to use Sass with Symfony's AssetMapper Component (no Node required!).
- Automatically download the correct Sass binary
- Adds a
sass:buildcommand to build and watch your sass changes
Installation
Install the bundle
composer require webmamba/sass-bundle
Usage
To use generated css, start by including the input file
(assets/styles/app.css by default)
{# templates.base.html.twig #}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('styles/app.css') }}">
{% endblock %}
Then you can create your scss file (assets/styles/app.scss by default)
And start writing your style.
Then run the command:
php bin/console sass:build --watch
And Thats it!