replace webpack with assetmapper
tacman opened this issue · 4 comments
VERY COOL that you have a Symfony 7 app!
My favorite feature of Symfony 6.4/7 is assetmapper, as the build step is sooooo much easier than with webpack.
If you made that switch, this would be a great example of a PWA built with Symfony. There's a great article on how to create a PWA with importmap and rails, perhaps this could be the basis of a Symfony version of the same thing.
I got it working with sqlite / postgres on my branch, and am removing webpack now.
Very cool app!
Hi
Note the application already works as PWA: install to home screen, cache storage, badge, reload on update (when the version is updated)

https://github.com/stephanediondev/feed/blob/main/public/serviceworker.js
I put in cache all the files from the build: see self.addEventListener('install', function(InstallEvent) {
But I can check assetmapper
so I got stuck with some of the javascript stuff, but I'm happy to jump in and help with the Symfony code.