| Package Data | |
|---|---|
| Maintainer Username: | SirCumz |
| Maintainer Contact: | jefferso_83@hotmail.com (Tjip Kloosterman) |
| Package Create Date: | 2017-09-09 |
| Package Last Update: | 2017-10-05 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:03:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 24 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A Laravel 5.4+ package for mixing Laravel packages.
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
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!