sircumz/laravel-mixable
Composer 安装命令:
composer require sircumz/laravel-mixable
包简介
A Laravel 5.4 package for mixing packages.
README 文档
README
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!
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-09