pawlox / laravel-scss
Adds Blade directive for compiling SCSS to CSS in templates
Installs: 974
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 4
Open Issues: 0
pkg:composer/pawlox/laravel-scss
Requires
- leafo/scssphp: 0.6.7
This package is auto-updated.
Last update: 2025-10-06 07:34:09 UTC
README
Adds a @scss tag to Laravel's Blade templating engine.
With this package you can use SCSS syntax in Laravel's Blade templates. It will be automatically compiled to CSS in result. Example:
<style> @scss #menu { .item { &.active { background-color: red; } } } @endscss </style>
Installation
Get the Package
Install the pawlox/laravel-scss package:
composer require pawlox/laravel-scss
Register the Service Provider
Open up your app.php
in your config
folder, and add the following line to
your providers
list like:
'providers' => [
...
Pawlox\LaravelScss\LaravelScssProvider::class
]