Doesn't the page reload on save? What sort of Javascript is used on the blade pages?
Feb 5, 2023
3
Level 5
Vite hot reload for blade files
I'm working on a Vue/Inertia backend (via app.blade.php) and a plain blade front end (rest of files in resources/views alone with app.blade.php).
Hot reloading works for the vue backend, but how can I get it to work for blade files when I make an update to a javascript file and it auto-reloads. Currently I have to go to the browsers cache, delete the js in the cache and then manual refresh.
//vite.config.js
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
Please or to participate in this conversation.