jcadima
1/27/2017 - 8:30 PM

New Mixin Laravel replaces gulp

New Mixin Laravel replaces gulp

https://ppolyzos.com/2016/07/01/update-node-js-on-a-mac-windows-from-terminal/

https://laracasts.com/series/whats-new-in-laravel-5-4/episodes/3

https://laravel.com/docs/5.4/mix

1) install a new laravel project

2) run:
$ npm install

3) npm run dev

# if errors, check your node js version:
$ npm install -g n
$ sudo n latest

4) npm run watch
# this will compile  if you make changes to css and js automatically

5) you can include css and js files like:

<link href="/css/app.css" rel="stylesheet">



this is how the css and js files will be used when:
$ npm run production

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