PaulKinlan / qrcode

The best web based QR Code reader on the web
https://qrsnapper.com/
Apache License 2.0
363 stars 489 forks source link

Add option to serve the app as dev #46

Closed TimvdLippe closed 6 years ago

TimvdLippe commented 6 years ago

This builds on top of #45 and I would advise reviewing and merging that one first.

By serving the raw application files, there is no longer a need for bundling during development. In this case, a refresh of the page will always load the last version of the files.

This also makes use of some new web features, which are (at the time of writing) in little to no browsers. (Most notably, it uses ES modules in workers, albeit not in SW, see: https://bugs.chromium.org/p/chromium/issues/detail?id=824647)

You can test this out by running npm run start-dev and open localhost:8080 in your web browser. You can simply change any file you like and hit refresh to see the updates.

vercel[bot] commented 6 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.