pawlox/laravel-scss

Adds Blade directive for compiling SCSS to CSS in templates
1,548 4
Install
composer require pawlox/laravel-scss
Latest Version:v0.1.1
License:MIT
Last Updated:Aug 10, 2017
Links: GitHub  ·  Packagist
Maintainer: pawlox

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
]

Related Packages

classygeeks/potion

Potion is a pure PHP asset manager for Laravel based off of Assetic.

737 61
websemantics/lcss2php

Conveniently extracts variable declarations from multiple Less / Scss sources an...

60,427 3
philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

686,443 354
jeroennoten/laravel-adminlte

Easy AdminLTE v4 integration with Laravel

5,302,669 4,001