-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move service-worker scopes to
/
instead of /build/
By default the `laravel-vite-plugin` will overwrite the sw build directory to `public/build` dir, and someone find it incorrect, see vite-pwa/vite-plugin-pwa#547 or even couldn't get it working at all vite-pwa/vite-plugin-pwa#431. wandering around the community I come across the `vite.config.js` [^1] to move the build scope to root folder, as consequence we need to configure our server to allow service worker to run on root public directory while the `sw.js` located in `build` directory. As of now, I still need to ensure how it works while I learn and make the service worker working in the first place [^1]: https://github.com/sfreytag/laravel-vite-pwa/blob/ecbdb05c1935040737b2c57ee0e2690f784e7a2c/vite.config.js\#L62-L154 Signed-off-by: Fery Wardiyanto <[email protected]>
- Loading branch information
1 parent
d3c4ce4
commit 88bcdc1
Showing
2 changed files
with
63 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters