| Package Data | |
|---|---|
| Maintainer Username: | misterbk |
| Maintainer Contact: | info@mister-bk.de (mister bk! GmbH) |
| Package Create Date: | 2017-04-21 |
| Package Last Update: | 2025-08-08 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-06 15:16:26 |
| Package Statistics | |
|---|---|
| Total Downloads: | 170,279 |
| Monthly Downloads: | 465 |
| Daily Downloads: | 18 |
| Total Stars: | 51 |
| Total Watchers: | 6 |
| Total Forks: | 10 |
| Total Open Issues: | 3 |
This plugin requires Craft CMS 3.0.0-RC1 or later.
To install the plugin, follow these instructions.
cd /path/to/project
composer require misterbk/mix
To configure Mix go to Settings → Plugins → Mix in the Craft Control Panel.
The available settings are:
NOTE: Both Public Path and Asset Path get trimmed to allow all kind of path combinations.
/web/+/assets/→/web/assets/web+assets→/web/assets//+assets→/assets//web+/→/web/
Find a versioned CSS file.
<link rel="stylesheet" href="{{ mix('css/main.css') }}">
Find a versioned JavaScript file.
<script src="{{ mix('js/main.js') }}"></script>
Lazily find a versioned file and build the tag based on the file extension.
{{ craft.mix.withTag('js/main.js') | raw }}
Alternatively include the content of a versioned file inline.
{{ craft.mix.withTag('css/main.css', true) | raw }}
Craft Mix is open-sourced software licensed under the MIT license.