{"id":86,"date":"2019-12-11T13:09:27","date_gmt":"2019-12-11T04:09:27","guid":{"rendered":"http:\/\/sumomo.ohwaki.jp\/wordpress\/?p=86"},"modified":"2019-12-11T13:13:14","modified_gmt":"2019-12-11T04:13:14","slug":"blazor-wasm%e7%89%88%e3%81%ae%e5%85%ac%e9%96%8b","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=86","title":{"rendered":"blazor wasm\u7248\u306e\u516c\u958b"},"content":{"rendered":"\n<p>blazor wasm\u7248\u3092\u516c\u958b\u3057\u3066\u307f\u305f\u3002<br>\u3053\u3061\u3089\u306f\u3001blazor Server Side\u7248\u3068\u7570\u306a\u308a\u3001dotnet publish\u3067\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u305d\u306e\u307e\u307e\u3001Web\u30b5\u30a4\u30c8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3060\u3051\u3060\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001Web Assembly(.wasm)\u306eMime\u30bf\u30a4\u30d7\u3092Web\u30b5\u30fc\u30d0\u306b\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30b3\u30d4\u30fc\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3060\u304c\u3001\u4ee5\u4e0b\u3068\u306a\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8>\/bin\/Release\/&lt;\u5bfe\u8c61\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af>\/publish\/&lt;\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d>\/dist<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4e2d\u8eab\u3092\u5168\u3066\u3001HTTP\u30b5\u30fc\u30d0\u306e\u516c\u958b\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<\/p>\n\n\n\n<p> \u306a\u304a\u3001\u516c\u958b\u3059\u308b\u969b\u306b\u6c17\u3092\u4ed8\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u306e\u306f\u3001wwwroot\/index.html\u4e2d\u306e&lt;basse&gt;\u30bf\u30b0\u306e\u6271\u3044\u3060\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001&lt;base href=&#8221;\/&#8221;&gt;\u3068\u306a\u3063\u3066\u3044\u3066\u3001HTTP\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u914d\u7f6e\u5148\u304c\u3001\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u306e\u5834\u5408\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u305d\u306e\u5834\u5408\u306f\u3001&lt;base&gt;\u30bf\u30b0\u306e\u5024\u3092\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u8fbc\u307f\u306b\u5909\u66f4\u3057\u3088\u3046\u3002 <\/p>\n\n\n\n<p>\u307e\u305f\u3001HTTPD\u306e\u8a2d\u5b9a\u3060\u304c\u3001Apache HTTPD\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u8ffd\u52a0\u304c\u5fc5\u8981\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    # Mime Type\u306e\u8ffd\u52a0\n    AddType application\/wasm .wasm\n    AddType application\/octet-stream .dll\n    # \u5727\u7e2e\u306e\u8a2d\u5b9a(\u5fc5\u9808\u3067\u306f\u306a\u3044\u304c\u3001MS\u306e\u30b5\u30a4\u30c8\u306b\u306f\u4f8b\u3068\u3057\u3066\u8f09\u3063\u3066\u3044\u308b)\n    &lt;IfModule mod_deflate.c>\n        AddOutputFilterByType DEFLATE text\/css\n        AddOutputFilterByType DEFLATE application\/javascript\n        AddOutputFilterByType DEFLATE text\/html\n        AddOutputFilterByType DEFLATE application\/octet-stream\n        AddOutputFilterByType DEFLATE application\/wasm\n        &lt;IfModule mod_setenvif.c>\n            BrowserMatch ^Mozilla\/4 gzip-only-text\/html\n            BrowserMatch ^Mozilla\/4.0[678] no-gzip\n            BrowserMatch bMSIE !no-gzip !gzip-only-text\/html\n        &lt;\/IfModule>\n    &lt;\/IfModule>\n<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3001blazor wasm\u7248\u3092HTTPD\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4e8b\u304c\u53ef\u80fd\u3068\u306a\u308b\u3002<br>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u516c\u958b\u3057\u305f\u306e\u306f\u3001\u4e0b\u8a18URL\u3002<br><a href=\"http:\/\/blazor.ohwaki.jp\/canvas\">http:\/\/blazor.ohwaki.jp\/canvas<\/a><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3001blazor Server Side\u7248\u3088\u308a\u7c21\u5358\u306b\u516c\u958b\u53ef\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>blazor wasm\u7248\u3092\u516c\u958b\u3057\u3066\u307f\u305f\u3002\u3053\u3061\u3089\u306f\u3001blazor Server S &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=86\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,10,11,4],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-asp-net-core","category-blazor","category-dotnetcore","category-4"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":3,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}