leowebguy / mix-manifest
A minimal plugin to load assets from mix-manifest.json
Installs: 7 149
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: ^8.2
- craftcms/cms: ^5.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- craftcms/rector: dev-main
- laravel/pint: ^1.14.0
README
A minimal Craft plugin to load assets from mix-manifest.json
Installation
composer require leowebguy/mix-manifest
On your Control Panel, go to Settings → Plugins → "Mix Manifest" → Install
Usage
Find versioned file from /js/app.js
<link rel="stylesheet" href="{{ mix('/js/app.js') }}">
output 👇
<link rel="stylesheet" href="/js/app.js?id=1b26b5dcee58a5ecb27d">
You may also pass a different mix-manifest.json
filename
{{ mix('/js/app.js', 'my-manifest.json') }}