diff --git a/Client.fs b/Client.fs index 2137110..61d932d 100644 --- a/Client.fs +++ b/Client.fs @@ -12,6 +12,6 @@ module Client = [] let Main () = div [] [ - p [] [ text "hello world" ] + p [] [ text "hello world!" ] ] |> Doc.RunById "main" diff --git a/Startup.fs b/Startup.fs index a87eeb9..cb9e6af 100644 --- a/Startup.fs +++ b/Startup.fs @@ -30,7 +30,7 @@ let main args = app .UseHttpsRedirection() #if DEBUG -// .UseWebSharperScriptRedirect(startVite = true) + .UseWebSharperScriptRedirect(startVite = true) #endif .UseDefaultFiles() .UseStaticFiles() diff --git a/vite.config.js b/vite.config.js index 16ec8a0..1d5c00f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,8 +3,8 @@ build: { rollupOptions: { input: [ - "./Scripts/web_api_cookbook.min.js" + "./wwwroot/Scripts/web_api_cookbook.min.js" ] } } -} \ No newline at end of file +} diff --git a/web_api_cookbook.fsproj b/web_api_cookbook.fsproj index 0fa2430..e297297 100644 --- a/web_api_cookbook.fsproj +++ b/web_api_cookbook.fsproj @@ -4,6 +4,10 @@ net9.0 + + True + +