Skip to content

Commit

Permalink
Update to laravel-mix 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iulyanp committed Mar 19, 2017
1 parent caaac94 commit 19efb2a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,23 @@ class AppKernel extends Kernel
}
```

### Step 3: Initialize larave-mix package
### Step 3: Configure the bundle
In order to be able to use the bundle you have to give it some configuration specific to your application.

```
# config/parameters.yml
parameters:
# ...
web_dir: "%kernel.root_dir%/../web"
# config/config.yml
iulyanp_elixir_mix:
web_dir: "%web_dir%"
```
The `web_dir` configuration is just the public path where you want the output for your assets to be saved. I used `web`
directory from Symfony.

### Step 4: Initialize larave-mix package
If you already have installed `Node.js`, `npm` you should be all set to run:

```
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@
},
"require": {
"php": "^5.6|^7.0",
"symfony/symfony": "^2.7|^3.1"
"symfony/symfony": ">=2.7"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
}
},
"extra": {
"branch-alias": {
"dev-master": "0.5.0-dev"
}
},
"prefer-stable": true,
"minimum-stability": "dev"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"axios": "^0.15.2",
"bootstrap-sass": "^3.3.7",
"jquery": "^3.1.0",
"laravel-mix": "^0.6.2",
"laravel-mix": "^0.8.2",
"lodash": "^4.16.2",
"vue": "^2.0.1"
}
Expand Down

0 comments on commit 19efb2a

Please sign in to comment.