Skip to content

webteractive/mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Mix support plugin

Laravel Mix support plugin for ExpressionEngine. This plugin will expose a {exp:mix path='/path/to/asset/file.js'} tag that works like mix('/path/to/asset/file.js'). The tag will then return the asset URL base from the mix-manifest.json file.

Installation

  1. Download the plugin
  2. Extract the downloaded zip file to your ExpressionEngine addons directory (system/user/addons)
  3. Login to Admin and goto Developer > Add-Ons > Third Party Add-Ons.
  4. Look for Laravel Mix and click Install
  5. Add $config['mix_manifest'] = 'path/to/mix-manifest.json'; to your config file. If the resulting manifest file is located at your root directory, the config entry should be $config['mix_manifest'] = '{base_path}/mix-manifest.json.

Usage

Once the plugin is installed, you should now be able to use the {exp:mix} tag. This tag has a single property named path where you add the asset path that you want to reference. See examples below:

<link href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7Bexp%3Amix+path%3D%27%2Fcss%2Fapp.css%27%7D" rel="stylesheet" type="text/css" media="screen">

About

Laravel Mix support plugin

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages