Skip to content

Instantly share code, notes, and snippets.

@ina-amagami
Last active November 27, 2023 15:03
Show Gist options
  • Save ina-amagami/dfbc8e6b79185159f107c77c1495d898 to your computer and use it in GitHub Desktop.
Save ina-amagami/dfbc8e6b79185159f107c77c1495d898 to your computer and use it in GitHub Desktop.
CocosでCapacitorを利用するためにindex.htmlを修正する
<%- include(cocosTemplate, {}) %>
<!-- ↑こちらは削除して以下に置き換える -->
<% if (webDebuggerSrc) { %>
<script src="<%=webDebuggerSrc%>"></script>
<script type="text/javascript">
// open web debugger console
window.VConsole && (window.vConsole = new VConsole());
</script>
<% } %>
<!-- Polyfills bundle. -->
<script src="<%= polyfillsBundleFile %>" charset="utf-8"> </script>
<!-- SystemJS support. -->
<script src="<%= systemJsBundleFile %>" charset="utf-8"> </script>
<!-- Import map -->
<script src="<%= importMapFile%>" type="systemjs-importmap" charset="utf-8"> </script>
<script src="./<%= indexJsName %>"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment