Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wiejeben/craft-laravel-mix
Integrates Laravel Mix Cache Busting with the Craft 3 Twig template engine.
https://github.com/wiejeben/craft-laravel-mix
craft craft-plugin craft2 craft3 craft4 craftcms craftcms-plugin laravel-mix twig webpack
Last synced: about 22 hours ago
JSON representation
Integrates Laravel Mix Cache Busting with the Craft 3 Twig template engine.
- Host: GitHub
- URL: https://github.com/wiejeben/craft-laravel-mix
- Owner: Wiejeben
- License: mit
- Created: 2017-07-13T21:45:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T14:44:25.000Z (over 2 years ago)
- Last Synced: 2024-12-04T08:38:53.467Z (18 days ago)
- Topics: craft, craft-plugin, craft2, craft3, craft4, craftcms, craftcms-plugin, laravel-mix, twig, webpack
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Mix Cache Busting plugin for Craft CMS
Integrates Laravel Mix Cache Busting plugin with the Craft Twig template engine.
## Requirements
This plugin requires Craft CMS 4.0.0 or later.
For Craft CMS 2, use [version 1.0.0](https://github.com/Wiejeben/craft-laravel-mix/releases/tag/1.0.0).
For Craft CMS 3, use [version 2.1.0](https://github.com/Wiejeben/craft-laravel-mix/releases/tag/2.1.0).## Installation
To install the plugin, follow these instructions.
1. Open your terminal and go to your Craft project:
cd /path/to/project
2. Then tell Composer to load the plugin:
composer require Wiejeben/craft-laravel-mix
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Laravel Mix Cache Busting Twig Extension.
## Introduction
Laravel Mix itself provides a fluent API for defining Webpack build steps for your Laravel application using several common CSS and JavaScript pre-processors.
If you've ever been confused and overwhelmed about getting started with Webpack and asset compilation, you will love Laravel Mix. However, you are not required to use it while developing your application. Of course, you are free to use any asset pipeline tool you wish, or even none at all.
## Official Documentation
Documentation for Laravel Mix Cache Busting can be found on the [Laravel website](https://laravel.com/docs/8.x/mix#versioning-and-cache-busting).
Brought to you by [Maarten de Graaf](http://maarten.co.uk)