mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-31 10:40:10 +02:00
try base tag
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@@ -11,9 +11,10 @@
|
|||||||
rel="manifest"
|
rel="manifest"
|
||||||
href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"
|
href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"
|
||||||
/>
|
/>
|
||||||
|
<base href="/create/" />
|
||||||
|
|
||||||
<% if (cli.manifest.theme_color) { %>
|
<% if (cli.manifest.theme_color) { %>
|
||||||
<meta name="theme-color" content="<%= cli.manifest.theme_color %>">
|
<meta name="theme-color" content="<%= cli.manifest.theme_color %>" />
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -71,12 +72,11 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<div id="portal"></div>
|
<div id="portal"></div>
|
||||||
|
|
||||||
<%= cli.ssr %>
|
<%= cli.ssr %> <% if (cli.config.prerender === true) { %>
|
||||||
<% if (cli.config.prerender === true) { %>
|
<script type="__PREACT_CLI_DATA__">
|
||||||
<script type="__PREACT_CLI_DATA__">
|
<%= encodeURI(JSON.stringify(cli.CLI_DATA)) %>
|
||||||
<%= encodeURI(JSON.stringify(cli.CLI_DATA)) %>
|
</script>
|
||||||
</script>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
<script type="module" src="<%= cli.entrypoints['bundle'] %>"></script>
|
<script type="module" src="<%= cli.entrypoints['bundle'] %>"></script>
|
||||||
<script nomodule src="<%= cli.entrypoints['dom-polyfills'] %>"></script>
|
<script nomodule src="<%= cli.entrypoints['dom-polyfills'] %>"></script>
|
||||||
|
Reference in New Issue
Block a user