Helper plugin for OctoberCMS themes using Laravel Mix. Adds custom mix()
twig function for the generated mix-manifest.json
file.
Ompmega.MixHelper
yarn dev
for development or yarn prod
for productionconfig/app.php
: 'mix_url' => env(MIX_ASSET_URL, null),
(optional)Below is the directory structure that the plugin uses to locate the mix-manifest.json
file and the provided webpack.mix.js
example uses two new directories inside of assets.
my-theme/
├── assets/
│ ├── public/ == Public folder for generated assets
│ ├── resources/ == Resources folder for development
│ └── mix-manifest.json == Manifest in assets directory
├── content/
├── layouts/
├── pages/
├── partials/
└── webpack.mix.js == Webpack in theme directory
Please report any questions or issues here.
MIT