JordanMarr / fable-lit-fullstack-template

A SAFE-style template with Fable.Lit, Fable.Remoting and Giraffe
MIT License
58 stars 1 forks source link

Template requires elveated privileges on Ubuntu #13

Open mattgallagher92 opened 1 year ago

mattgallagher92 commented 1 year ago

Thanks for this interesting template Jordan!

When running npm start for the first time, I saw these logs:

... Started Fable compilation... Fable compilation finished in 3767ms

.> node_modules/.bin/vite Watching .. Sudo password:

This seems to be because of the use of https://github.com/liuweiGL/vite-plugin-mkcert (see https://github.com/vitejs/vite/issues/11772).

Is there a way that I can avoid using that plugin? I don't want to give root privileges out to try out this template. Thanks 🙂

JordanMarr commented 1 year ago

Sure, just remove the plugin in this file (line 36): https://github.com/JordanMarr/fable-lit-fullstack-template/blob/main/Template/WebLit/vite.config.js