alonswartz / notesium

Markdown notes system with bi-directional links, Vim integration and local webapp
https://www.notesium.com
MIT License
60 stars 5 forks source link

Suggestion & minimal implementation: Vite build #39

Open qq7 opened 6 months ago

qq7 commented 6 months ago

Hi Alon, it seemed a bit strange to me that you've decided to write your own bundling system instead of utilizing npm/yarn/pnpm (I went with pnpm in this pull request) with vite, the bundling tool introduced and maintained by vue team, so I decided to build this minimal example so that it's easier for you to evaluate it makes sense for you to use it in the future.

! I have not tested it with a running backend.

in web/app/: dev environment with hmr:

pnpm install
pnpm run dev

production build:

pnpm install
pnpm run build

This may also be extended with following improvements:

alonswartz commented 6 months ago

Hey @qq7, thanks for that!

My initial rationale was to keep it simple, and not require build dependencies. But, the web/app has grown since its inception so it might be time to reconsider.