1
0
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:
Kushagra Gour
2024-02-29 13:37:53 +05:30
parent cfaa67b66b
commit 9fa312527c

View File

@@ -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>