Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iulyanp/elixir-mix-bundle
A Symfony bundle that integrates Laravel Mix
https://github.com/iulyanp/elixir-mix-bundle
assets laravel-mix symfony symfony-bundle webpack
Last synced: about 1 month ago
JSON representation
A Symfony bundle that integrates Laravel Mix
- Host: GitHub
- URL: https://github.com/iulyanp/elixir-mix-bundle
- Owner: iulyanp
- License: mit
- Created: 2017-01-15T18:43:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-18T17:27:00.000Z (over 3 years ago)
- Last Synced: 2024-09-30T17:23:06.969Z (about 2 months ago)
- Topics: assets, laravel-mix, symfony, symfony-bundle, webpack
- Language: PHP
- Size: 242 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/iulyanp/elixir-mix-bundle.svg?branch=master)](https://travis-ci.org/iulyanp/elixir-mix-bundle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/iulyanp/elixir-mix-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/iulyanp/elixir-mix-bundle/?branch=master)ElixirMixBundle
===================> Note! Starting with Symfony 4 you can use the official webpack wrapper from Symfony: [Encore](https://symfony.com/doc/current/frontend/encore/installation.html).
I also wrote a short blog post about how you can [Compile your assets with Symfony Encore](https://iulyanp.github.io/symfony/2017/06/18/symfony-encore/).ElixirMixBundle is a Symfony bundle that integrates [Laravel Mix](https://github.com/JeffreyWay/laravel-mix).
The purpose of the bundle is to offer the `mix()` twig function. This is exactly the same `mix()` function from Laravel
blade template system.### Requirements
Before you start installing this bundle you first have to ensure that Node.js and NPM are installed on your machine.
## Installation
### Step 1: Require the bundle with composer
Open your terminal and run one of the following commands to download the bundle into your vendor directory.
If you have composer installed globally you can run:
```
$ composer require iulyanp/elixir-mix-bundle
```
Else you can go with:
```
$ php composer.phar require iulyanp/elixir-mix-bundle
```### Step 2: Register the bundle in your AppKernel class
Register the bundle in the app/AppKernel.php file of your project:
```
```
You can find more about laravel mix usage on the [official documentation](https://github.com/JeffreyWay/laravel-mix/tree/master/docs#summary)### License
The ElixirMixBundle is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).