1/27/2017 - 8:30 PM

New Mixin Laravel replaces gulp

New Mixin Laravel replaces gulp




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">