ash-bergs / pantry-pal

Keep track of your shopping list and pantry stock
0 stars 0 forks source link

feat: dev webpack config #33

Closed ash-bergs closed 1 month ago

ash-bergs commented 1 month ago

When developing locally it was really annoying to have to rebuild and dump the browser cache when making changes to the project, which was necessary because we generate a service worker for the project, effectively caching the essential files to run the app offline.

The need for webpack configuration to support hot reloading locally was obvious, so that's exactly what this PR adds.

Testing

  1. npm run dev
  2. Project should start on 9000
  3. Make a change somewhere in the project
  4. Locally run project should update - no sw errors should crash the browser