VEuPathDB / web-monorepo

A monorepo that contains all frontend code for VEuPathDB websites
Apache License 2.0
2 stars 0 forks source link

Add script to generate script for modern vs legacy based on useragent string #1159

Closed dmfalke closed 4 months ago

dmfalke commented 4 months ago

Fixes #1158

This PR adds a script that will generate a script, based on the browserslist configuration. The generated script can be used to determine if a useragent string should be served the modern or the legacy code bundles. This script will be generated as a part of the bundle:npm build script, and will be included in the published npm package for each site. This will allow websites using these packages to utilize the generated script.