sbs20 / scanservjs

SANE scanner nodejs web ui
https://sbs20.github.io/scanservjs/
GNU General Public License v2.0
766 stars 145 forks source link

Upgrade to Vue3 and Vite #639

Closed sbs20 closed 1 year ago

sbs20 commented 1 year ago

This is a significant update. The old Vue2 app would not build with node18 or above which was gradually becoming important to fix. Further, now that IE has been out of support for over a year, it's reasonable to stop supporting it and other old browsers.

It would have been possible to upgrade just Vite or just Vue3 but going to all the effort to do half a job didn't seem worth it; as well as just the more mundane "keeping up to date"

Vite offers significant advantages in terms of development speed - UI builds now take seconds rather than minutes, but it also means that building the app requires node 14 (ideally later) or above. That said, the app will run using node 10+.

The changes are rather too many to enumerate but fall into the following categories:

This PR is not intended to change any behaviour, packaging, or anything else.