AndX's avatar
Level 1

public app.js not updating contents

i'm new to Laravel, wanted to make project with Vue/Inertia. i have a problem with updating/creating new app.js bundle inside public/js folder.

not sure if i understand, is it created by component Mix? inside webpack.mix.js there is a line:

mix.js('resources/js/app.js', 'public/js')

however changes in resources/js/app.js nor other files like Welcome.vue doesn't reflect actual page. i can even completely wipe out resources/js/app.js and website is still working.

tracing code, last changes i found to apply are inside resources/views/app.blade.php there is line:

script src="{{ mix('js/app.js') }}" defer></script

when i try to change js/app.js path there, i get exception: Unable to locate Mix file...

can someone help please, im stuck on this topic many hours already?

0 likes
2 replies
AndX's avatar
Level 1

when i wipe out resources/js/Pages/Welcome.vue nothing changes

but changing route in web.php, for example

return Inertia::render('Welcome2'...)

this change makes the page dissapear

AndX's avatar
Level 1

damn it, all i had to do is: "npm run dev"

Please or to participate in this conversation.