Skip to content

Adds Blade directive for compiling SCSS to CSS in templates

License

Notifications You must be signed in to change notification settings

pawlox/laravel-scss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-scss

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
]

About

Adds Blade directive for compiling SCSS to CSS in templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages