graasp / graasp-account

GNU Affero General Public License v3.0
0 stars 2 forks source link

feat: add umami plugin in vite config #382

Closed spaenleh closed 4 days ago

spaenleh commented 5 days ago

In this PR I add a custom vite plugin that inserts the umami script tag into the html output file if the UMAMI_WEBSITE_ID env variable is set.

This removes the error that the builder has when the variable is not set. It was also a nice experience to see how it is possible to manipulate the outputted HTML code in vite !

sonarcloud[bot] commented 4 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud