Adds Blade directive for compiling SCSS to CSS in templates
pawlox/laravel-scss is a Laravel package for adds blade directive for compiling scss to css in templates.
It currently has 4 GitHub stars and 1.361 downloads on Packagist (latest version v0.1.1).
Install it with composer require pawlox/laravel-scss.
Discover more Laravel packages by pawlox
or browse all Laravel packages to compare alternatives.
Last updated
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>
Install the pawlox/laravel-scss package:
composer require pawlox/laravel-scss
Open up your app.php in your config folder, and add the following line to
your providers list like:
'providers' => [
...
Pawlox\LaravelScss\LaravelScssProvider::class
]