Answer the question
In order to leave comments, you need to log in
Why doesn't Laravel Mix BrowserSync clear the browser cache?
After changes in the file, BrowserSync refreshes the page, but does not clear the cache. Have to do it manually. How do I get BrowserSync to do this?
const mix = require("laravel-mix");
mix
.js("resources/js/app.js", "public/js")
.sass("resources/sass/app.scss", "public/css");
mix.browserSync({
proxy: "test.loc",
open: false,
files: [
"public/assets/**/*",
"public/index.php",
"resources/**/*",
"app/**/*",
"routes/*"
]
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question