dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
589 stars 52 forks source link

Allow `wsconfig.json` to define overrides for Debug/Release configurations #1404

Open Jand42 opened 3 months ago

Jand42 commented 3 months ago

To allow changing the bundling behavior for Release/Debug builds, we can extend wsconfig.json with relevant sections. For instance, the following sets up "prebundling" in release mode:

For example:

{
  "$schema": "https://websharper.com/wsconfig.schema.json",
  "project": "web",
  "outputDir": "wwwroot",
  "release": {
    "outputDir": "build",
    "preBundle": true
  }
}