a few years ago I did it with browsersync, may be of use?
http://novate.co.uk/using-browser-sync-with-laravel-without-mix-or-webpack/
I followed this
https://laravel-mix.com/docs/6.0/livereload
npm install webpack-livereload-plugin@1 --save-dev
and my webpack.mix.js is following.
const mix = require('laravel-mix');
var LiveReloadPlugin = require('webpack-livereload-plugin');
mix.js('resources/js/app.js', 'public/js').postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
]);
mix.webpackConfig({
plugins: [new LiveReloadPlugin()]
});
when I execute ' npm run watch' , it caused error .
[webpack-cli] TypeError: compiler.plugin is not a function at LiveReloadPlugin.apply ......
How can I use livereload Plugin ?
a few years ago I did it with browsersync, may be of use?
http://novate.co.uk/using-browser-sync-with-laravel-without-mix-or-webpack/
Please or to participate in this conversation.