unity发布webgl

打包后 需添加配置文件Web.config 放在根目录下

<configuration>
  <system.webServer>
      <staticContent>
      <mimeMap fileExtension=".mem" mimeType="application/octet-stream" />
      <mimeMap fileExtension=".data" mimeType="application/octet-stream" />
      <mimeMap fileExtension=".memgz" mimeType="application/octet-stream" />
      <mimeMap fileExtension=".datagz" mimeType="application/octet-stream" />
      <mimeMap fileExtension=".unity3dgz" mimeType="application/octet-stream" />
      <mimeMap fileExtension=".jsgz" mimeType="application/x-javascript; charset=UTF-8" />
    </staticContent>
  </system.webServer>
</configuration>

IIS默认文件地址在C:\inetpub\wwwroot 连同发布的三个文件一起放在该目录下

 

posted @ 2019-11-22 09:35  zpz904  阅读(1139)  评论(0编辑  收藏  举报