-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define buildInfoKeys per Task (or per "Custom" Config) scope #143
Comments
I luckily found a potential answer thanks to @eed3si9n that allows me to set either "dev" or "prod" values for buildInfoKeys, as shown in this answer However, I'm only able to change the
Thanks, and perhaps this is a feature enhancement? Was it ever intended to run BuildInfo for multiple configs/tasks? |
I think I found a reference showing this was done before: #61 While it does work using Test configuration I am still not able to provide a custom configuration:
when I run: when I run: Is there a way to get it to work for custom config that extends |
Using scalajs, I think sbt-buildinfo is the perfect solution for incorporating compile-time environment overrides. For instance, webpack has the
DefinePlugin
which injects globalvars
as environment-specific overrides (e.g. to compile with either dev/qa/prod hostnames). But global vars is just starting to get support in scalajs, and I'm not totally liking the idea of global vars anyway.So to use sbt-buildinfo to fulfill this need, I just need to be able to configure compile-time env constants like:
Is there an easy fix for supporting setting
buildInfoKeys
when different scalajs tasks are being run? Any potential workarounds?The text was updated successfully, but these errors were encountered: