LaravelPackages.net
Acme Inc.
Toggle sidebar
sircumz/laravel-mixable

A Laravel 5.4 package for mixing packages.

24
1
1.0.0
About sircumz/laravel-mixable

sircumz/laravel-mixable is a Laravel package for a laravel 5.4 package for mixing packages.. It currently has 1 GitHub stars and 24 downloads on Packagist (latest version 1.0.0). Install it with composer require sircumz/laravel-mixable. Discover more Laravel packages by sircumz or browse all Laravel packages to compare alternatives.

Last updated

Laravel Mixable!

Latest Stable Version Total Downloads Latest Unstable Version License

A Laravel 5.4+ package for mixing Laravel packages.


Installing Laravel Mixable

The preferred way of installing is through composer

composer require sircumz/laravel-mixable

Add the service provider to config/app.php:

SirCumz\LaravelMixable\LaravelMixableServiceProvider::class

Compiling Assets with Laravel Mix

Add the following code to the top of "webpack.mix.js" if you want to enable asset compiling with Mixable.

const mix = require('./vendor/sircumz/laravel-mixable/mixable.js');

instruct Mixable what to mix. You can use almost every function that Laravel Mix has to offer in their API.

public function boot() {
    $this->app['mixable']->mix( function($mix) {
        $mix->sass( __DIR__ . '/assets/css/style.css', 'public/mypackage/css/style.css' )
            ->version();
    } );
}

Run the Laravel Mix commands in your terminal as you normally would do.

npm run watch

Enjoy!

Star History Chart