All Projects → mister-bk → craft-plugin-mix

mister-bk / craft-plugin-mix

Licence: MIT License
Helper plugin for Laravel Mix in Craft CMS templates

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to craft-plugin-mix

Craft Preparse Field
Field type that parses twig when an element is saved.
Stars: ✭ 103 (+106%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
craft-entry-instructions
A simple fieldtype to add instructions.
Stars: ✭ 16 (-68%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
craft-audit
Audit log for Craft 3
Stars: ✭ 18 (-64%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
Buttonbox
A collection of utility field types for Craft
Stars: ✭ 94 (+88%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
Simplemap
A beautifully simple map field type for Craft CMS.
Stars: ✭ 136 (+172%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
Seo
SEO utilities including a unique field type, sitemap & redirect manager
Stars: ✭ 210 (+320%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
tablemaker
A user-definable table field type for Craft CMS
Stars: ✭ 39 (-22%)
Mutual labels:  craft, craftcms, craft-plugin, craft3
picpuller-for-craft3
Pic Puller for Craft 3 lets authorized users pull in their Instagram media into Craft.
Stars: ✭ 12 (-76%)
Mutual labels:  craft, craftcms, craft-plugin
craft-bulkedit
Bulk edit any set of elements
Stars: ✭ 22 (-56%)
Mutual labels:  craft, craftcms, craft3
padstone
Padstone is a Craft CMS starter kit with a curated configuration, Boilerplate templates, and handpicked plugins.
Stars: ✭ 18 (-64%)
Mutual labels:  craft, craftcms, craft3
snipcart-craft-plugin
Craft e-commerce in a day.
Stars: ✭ 20 (-60%)
Mutual labels:  craftcms, craft-plugin, craft3
craft-guide
A CMS Guide for Craft CMS.
Stars: ✭ 62 (+24%)
Mutual labels:  craftcms, craft-plugin, craft3
contact-form-honeypot
Add a honeypot captcha to your Craft CMS contact form.
Stars: ✭ 24 (-52%)
Mutual labels:  craftcms, craft-plugin, craft3
visor
🕶 A simple admin overlay to get to the relevant areas of the Craft CMS control panel.
Stars: ✭ 25 (-50%)
Mutual labels:  craft, craftcms, craft3
anchors
Add anchor links to headings in your Craft CMS website content.
Stars: ✭ 47 (-6%)
Mutual labels:  craftcms, craft-plugin, craft3
craft-json-snippets
Helps make CraftCMS models in .json
Stars: ✭ 17 (-66%)
Mutual labels:  craft, craftcms, craft-plugin
molecule
⚛️ Grab Twig components, CSS and JS files outside the primary template folder
Stars: ✭ 20 (-60%)
Mutual labels:  craft, craftcms, craft3
seomate
SEO, mate! It's important. That's why SEOMate provides the tools you need to craft all the meta tags, sitemaps and JSON-LD microdata you need - in one highly configurable, open and friendly package - with a super-light footprint.
Stars: ✭ 31 (-38%)
Mutual labels:  craftcms, craft-plugin, craft3
craft3-seeder
Seeder is the easiest way to quickly create placeholder content while you're building out a website. Create your sections & fields and then let Seeder make entries for you.
Stars: ✭ 30 (-40%)
Mutual labels:  craft, craft-plugin, craft3
query
Run SQL queries as an admin from the Craft CMS control panel.
Stars: ✭ 14 (-72%)
Mutual labels:  craftcms, craft-plugin, craft3

Craft Mix Logo

Helper plugin for Laravel Mix in Craft CMS templates.

Latest Stable Version Total Downloads License

Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
cd /path/to/project
  1. Then tell Composer to load the plugin:
composer require misterbk/mix
  1. In the Craft Control Panel, go to Settings → Plugins and click the "Install" button for Mix.

Configuration

To configure Mix go to Settings → Plugins → Mix in the Craft Control Panel.

The available settings are:

  • Public Path - The path of the public directory containing the index.php
  • Asset Path - The path of the asset directory where Laravel Mix stores the compiled files

NOTE: Both Public Path and Asset Path get trimmed to allow all kind of path combinations.

  • /web/ + /assets//web/assets/
  • web + assets/web/assets/
  • / + assets/assets/
  • /web + //web/

Usage

Find a versioned CSS file.

<link rel="stylesheet" href="{{ mix('css/main.css') }}">

Find a versioned JavaScript file.

<script src="{{ mix('js/main.js') }}"></script>

Lazily find a versioned file and build the tag based on the file extension.

{{ craft.mix.withTag('js/main.js') | raw }}

Alternatively include the content of a versioned file inline.

{{ craft.mix.withTag('css/main.css', true) | raw }}

License

Craft Mix is open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].