setup and working

This commit is contained in:
caleb 2025-07-10 20:47:40 +09:00
parent bd3a93d628
commit e4f72b5c9e
4 changed files with 8 additions and 4 deletions

View File

@ -12,6 +12,6 @@ module Client =
[<SPAEntryPoint>]
let Main () =
div [] [
p [] [ text "hello world" ]
p [] [ text "hello world!" ]
]
|> Doc.RunById "main"

View File

@ -30,7 +30,7 @@ let main args =
app
.UseHttpsRedirection()
#if DEBUG
// .UseWebSharperScriptRedirect(startVite = true)
.UseWebSharperScriptRedirect(startVite = true)
#endif
.UseDefaultFiles()
.UseStaticFiles()

View File

@ -3,8 +3,8 @@
build: {
rollupOptions: {
input: [
"./Scripts/web_api_cookbook.min.js"
"./wwwroot/Scripts/web_api_cookbook.min.js"
]
}
}
}
}

View File

@ -4,6 +4,10 @@
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<WebSharperSourceMap>True</WebSharperSourceMap>
</PropertyGroup>
<ItemGroup>
<Compile Include="Client.fs" />
<Compile Include="Startup.fs" />