Eptagone / Vite.AspNetCore

Small library to integrate Vite into ASP.NET projects
MIT License
264 stars 35 forks source link

ViteOptions and ViteServerOptions Do not Support ".Configure(...)" #54

Closed EmperorArthur closed 1 year ago

EmperorArthur commented 1 year ago

ViteOptions and ViteServerOptions have all properties configured as { get; init; }.

This causes the following extremely common pattern to not compile!

builder.Services.Configure<ViteOptions>(options =>
{
  options.PackageDirectory = "myClientApp";
});
Eptagone commented 1 year ago

Hi. You're right. I'll change it with the next release.

Eptagone commented 1 year ago

Hi, the vite options records were reconfigured as { get; set; }. The changes are available with v1.10.1