Add versioned Laravel Mix files (based on your mix-manifest.js) to concrete5 themes and packages
kaapiii/concrete5-laravel-mix is a Laravel package for add versioned laravel mix files (based on your mix-manifest.js) to concrete5 themes and packages.
It currently has 0 GitHub stars and 43 downloads on Packagist (latest version 0.2).
Install it with composer require kaapiii/concrete5-laravel-mix.
Discover more Laravel packages by kaapiii
or browse all Laravel packages to compare alternatives.
Last updated
Provides wrapper methods for loading easily versioned laravel mix assets in concrete5 packages (and themes).
composer require kaapiii/concrete5-laravel-mix
Let's assume your mix-manifest.json contains following assets:
{
"/dist/css/main.css": "/dist/css/main.css?id=fd593dbed17d9fd9391f",
"/dist/js/main.js": "/dist/js/main.js?id=c833b937dc546bf8c034"
}
By adding the following snippet to your head.php or footer.php or any php file...
<?php $mix->printAsset('/dist/css/main.css') ?>
<?php $mix->printAsset('/dist/js/main.js') ?>
we get the following output (with cache busting).
<link type="text/css" rel="stylesheet" href="/dist/css/main.css?id=fd593dbed17d9fd9391f" />
<script src="https://raw.githubusercontent.com/Kaapiii/concrete5-laravel-mix/refs/heads/main/dist/js/main.js?id=c833b937dc546bf8c034"></script>
Unit tests can be run by executing github workflows/actions locally with nektos/act and this command.
act -P ubuntu-latest=shivammathur/node:latest
Or with ...
composer run-script test