There is a problem with the PWA I created in laravel

I want to ask, why is my PWA not running without using php artisan serve? I’m confused when using pwa it won’t run. but when i do php artisan serve on localhost it runs. I use workbox cli package to generate sw.js

Please help