BrowserSync + LiveReload not working correctly #4652
-
Sorry if this has been asked many times before, but I have searched and I have not found anything. I am pretty new to Statamic and I am trying to get BrowserSync and LiveReload to work on a site, but it just doesn't seem to want to work correctly. I have this in my webpack.mix.js: const mix = require('laravel-mix');
mix.browserSync({
proxy: 'statamic.local'
});
mix.js('resources/js/site.js', 'public/js')
mix.postCss('resources/css/tailwind.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('postcss-nested'),
require('postcss-preset-env')({stage: 0})
])
if (mix.inProduction()) {
mix.version();
} And when I run I am not using Laravel Valet, I am using Laragon (if that helps!) Just wondering if there is anything I should be doing different to regular Laravel? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Adding a line for the files to watch should do the trick 👍
|
Beta Was this translation helpful? Give feedback.
-
Nothing Statamic about this. If it’s new statamic it uses Vite not mix? |
Beta Was this translation helpful? Give feedback.
-
This was from 2021. I am also not using Statamic anymore, so it's safe to say this is old and not relevant anymore. |
Beta Was this translation helpful? Give feedback.
This was from 2021. I am also not using Statamic anymore, so it's safe to say this is old and not relevant anymore.