ibox/mix-function

Laravel mix function to render versioned assetes
6,656 13
Install
composer require ibox/mix-function
Latest Version:v1.0.0
PHP:>=5.4.0
License:MIT
Last Updated:Feb 8, 2017
Links: GitHub  ·  Packagist
Maintainer: juanem1

mix-funciton

Mix function to render versioned assetes outside Laravel project

Instalation

First install Laravel Mix https://github.com/JeffreyWay/laravel-mix

Then add this this line in your require section

"require": {
    "ibox/mix-function": "~1.0"
}

Then run:

composer install

Optionally you can run

composer dump-autoload

Configuration

If you you have a public directory, you can configure laravel mix as follow

mix.setPublicPath('public');
mix.sass('resources/assets/sass/app.sass', 'public/css').version();

Usage

Require composer autoload

require '../vendor/autoload.php';

Then in your HTML you can use mix function like this:

<link href="<?= mix('/css/app.css', __DIR__) ?>" rel="stylesheet">

Related Packages

reliese/laravel

Reliese Components for Laravel Framework code generation.

3,991,690 1,705
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160
laravel-ja/laravel

The Laravel Framework.

5,667 17
kavenegar/laravel

laravel 4 and 5 kavenegar integration

368,693 86
laravel/laravel

The skeleton application for the Laravel framework.

64,930,508 84,972