Skip to content

leowebguy/mix-manifest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mix Manifest plugin for Craft

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') }}