mirror of
https://github.com/chinchang/web-maker.git
synced 2025-10-12 12:04:24 +02:00
upgrade to preact-cli 4
This commit is contained in:
@@ -11,11 +11,9 @@
|
||||
rel="manifest"
|
||||
href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"
|
||||
/>
|
||||
<% if (htmlWebpackPlugin.options.manifest.theme_color) { %>
|
||||
<meta
|
||||
name="theme-color"
|
||||
content="<%= htmlWebpackPlugin.options.manifest.theme_color %>"
|
||||
/>
|
||||
|
||||
<% if (cli.manifest.theme_color) { %>
|
||||
<meta name="theme-color" content="<%= cli.manifest.theme_color %>">
|
||||
<% } %>
|
||||
|
||||
<style>
|
||||
@@ -73,13 +71,14 @@
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<div id="portal"></div>
|
||||
<!-- SCRIPT-TAGS -->
|
||||
<%= htmlWebpackPlugin.options.ssr({ url: '/' }) %>
|
||||
<script
|
||||
defer
|
||||
src="<%= htmlWebpackPlugin.files.chunks['bundle'].entry %>"
|
||||
></script>
|
||||
|
||||
<!-- END-SCRIPT-TAGS -->
|
||||
|
||||
<%= cli.ssr %>
|
||||
<% if (cli.config.prerender === true) { %>
|
||||
<script type="__PREACT_CLI_DATA__">
|
||||
<%= encodeURI(JSON.stringify(cli.CLI_DATA)) %>
|
||||
</script>
|
||||
<% } %>
|
||||
<script type="module" src="<%= cli.entrypoints['bundle'] %>"></script>
|
||||
<script nomodule src="<%= cli.entrypoints['dom-polyfills'] %>"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user