How to setup the Laravel Mix on version 5.4
to do css
livereloading whenever the sass
files get compiled? All the tutorials I found are relating to older versions.
I have installed the node
modules, and I am running the watch by npm run watch
, as stated on the tutorial https://laravel.com/docs/5.4/mix#sass. So far the webpack.mix.js
is as follows:
const { mix } = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
Here is how to configure Webpack LiveReload for Laravel >=5.4 and Laravel.mix https://komelin.com/articles/configuring-webpack-livereload-laravelmix