Laravel Mixmix Directive

v1.0.1 2018-12-11 01:58 UTC

This package is not auto-updated.

Last update: 2020-07-08 07:02:17 UTC


This @mixmix directive can convert CDN script/css files and local files into one local file.

Build Status

Before :

<link rel="stylesheet" href="" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="" />
<link href="/css/styles.css?{{time()}}" rel="stylesheet">
<link href="/css/main.css" rel="stylesheet" type="text/css">

After :

<link href="/storage/mixmix/3627482dd6bd4907389e0c1fcbfce6d0.css?1537641502" rel="stylesheet" type="text/css">


composer require prexlab/laravel_mixmix
php artisan storage:link


  • If APP_ENV=local, @mixmix do not convert.
  • ?FORCE_MIXMIX=1 can convert forcibly. This query parameter can be changed with FORCE_MIXMIX=hoge in .env
  • You can NOT include css file which import local file with relative link. (such as fontawesome)