{"action":"created","issue":{"url":"https://api.github.com/repos/mattkol/Chromely/issues/23","repository_url":"https://api.github.com/repos/mattkol/Chromely","labels_url":"https://api.github.com/repos/mattkol/Chromely/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/mattkol/Chromely/issues/23/comments","events_url":"https://api.github.com/repos/mattkol/Chromely/issues/23/events","html_url":"https://github.com/mattkol/Chromely/issues/23","id":328355953,"node_id":"MDU6SXNzdWUzMjgzNTU5NTM=","number":23,"title":"Blazor support","user":{"login":"biohazard999","id":653905,"node_id":"MDQ6VXNlcjY1MzkwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/653905?v=4","gravatar_id":"","url":"https://api.github.com/users/biohazard999","html_url":"https://github.com/biohazard999","followers_url":"https://api.github.com/users/biohazard999/followers","following_url":"https://api.github.com/users/biohazard999/following{/other_user}","gists_url":"https://api.github.com/users/biohazard999/gists{/gist_id}","starred_url":"https://api.github.com/users/biohazard999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biohazard999/subscriptions","organizations_url":"https://api.github.com/users/biohazard999/orgs","repos_url":"https://api.github.com/users/biohazard999/repos","events_url":"https://api.github.com/users/biohazard999/events{/privacy}","received_events_url":"https://api.github.com/users/biohazard999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T02:10:47Z","updated_at":"2018-06-01T09:59:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently I'm working on a project to bring blazor to desktop: [blaster](https://github.com/biohazard999/Blaster/)\r\n\r\nGood to see a lightweight alternative to electron in c# 👍 \r\n\r\nBut I've troubles where to catch up to serve the blazor files. Basically I need just a hint where to handle the mime types chromium serves for the example IIS config.\r\n\r\nThats the output of the blazor publish:\r\n``` xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<configuration>\r\n  <system.webServer>\r\n    <staticContent>\r\n      <remove fileExtension=\".dll\" />\r\n      <remove fileExtension=\".json\" />\r\n      <remove fileExtension=\".wasm\" />\r\n      <remove fileExtension=\".woff\" />\r\n      <remove fileExtension=\".woff2\" />\r\n      <mimeMap fileExtension=\".dll\" mimeType=\"application/octet-stream\" />\r\n      <mimeMap fileExtension=\".json\" mimeType=\"application/json\" />\r\n      <mimeMap fileExtension=\".wasm\" mimeType=\"application/wasm\" />\r\n      <mimeMap fileExtension=\".woff\" mimeType=\"application/font-woff\" />\r\n      <mimeMap fileExtension=\".woff2\" mimeType=\"application/font-woff\" /> \r\n    </staticContent>\r\n    <httpCompression>\r\n      <dynamicTypes>\r\n        <add mimeType=\"application/octet-stream\" enabled=\"true\" />\r\n        <add mimeType=\"application/wasm\" enabled=\"true\" />\r\n      </dynamicTypes>\r\n    </httpCompression>\r\n    <rewrite>\r\n      <rules>\r\n        <rule name=\"Serve subdir\">\r\n          <match url=\".*\" />\r\n          <action type=\"Rewrite\" url=\"Blaster.Blazor\\dist\\{R:0}\" />\r\n        </rule>\r\n        <rule name=\"SPA fallback routing\" stopProcessing=\"true\">\r\n          <match url=\".*\" />\r\n          <conditions logicalGrouping=\"MatchAll\">\r\n            <add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" negate=\"true\" />\r\n          </conditions>\r\n          <action type=\"Rewrite\" url=\"Blaster.Blazor\\dist\\\" />\r\n        </rule>\r\n      </rules>\r\n    </rewrite>\r\n  </system.webServer>\r\n</configuration>\r\n```\r\n\r\nAwesome project :)"},"comment":{"url":"https://api.github.com/repos/mattkol/Chromely/issues/comments/393834225","html_url":"https://github.com/mattkol/Chromely/issues/23#issuecomment-393834225","issue_url":"https://api.github.com/repos/mattkol/Chromely/issues/23","id":393834225,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgzNDIyNQ==","user":{"login":"mattkol","id":18384207,"node_id":"MDQ6VXNlcjE4Mzg0MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/18384207?v=4","gravatar_id":"","url":"https://api.github.com/users/mattkol","html_url":"https://github.com/mattkol","followers_url":"https://api.github.com/users/mattkol/followers","following_url":"https://api.github.com/users/mattkol/following{/other_user}","gists_url":"https://api.github.com/users/mattkol/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkol/subscriptions","organizations_url":"https://api.github.com/users/mattkol/orgs","repos_url":"https://api.github.com/users/mattkol/repos","events_url":"https://api.github.com/users/mattkol/events{/privacy}","received_events_url":"https://api.github.com/users/mattkol/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T09:59:23Z","updated_at":"2018-06-01T09:59:23Z","author_association":"OWNER","body":"Chromely really should be concerned with the final bundle and needs an entry html.\r\n\r\nSo, I see 2 options concerning Blaster - Resource loading and file protocol (file:///) - more info @ [Loading Html](https://github.com/mattkol/Chromely/wiki/Loading-Html).\r\n\r\nThe work here will be in resource loading. Please see samples - [CefSharp](https://github.com/mattkol/Chromely/blob/master/src/Chromely.CefSharp.Winapi/Browser/Handlers/CefSharpResourceSchemeHandler.cs), [CefGlue](https://github.com/mattkol/Chromely/blob/master/src/Chromely.CefGlue.Winapi/Browser/Handlers/CefGlueResourceSchemeHandler.cs).\r\n\r\nYou need to see how these are registered in [Configuration](https://github.com/mattkol/Chromely/wiki/Configuration).\r\n\r\nThe mime types Chromely uses in those two handlers are from a comprehensive list from CefSharp repo. You can look at the list and any mime type missing can be added - [the list](https://github.com/mattkol/Chromely/blob/master/src/Chromely.Core/Helpers/MimeMapper.cs).\r\n\r\nI will find time to try Blastor at some point and give more hints I find as it relates to Chromely."}}
{"actor":{"display_login":"mattkol"}}