Skip to content

Instantly share code, notes, and snippets.

@sudarshang
Created May 12, 2018 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudarshang/34c095a863b62d32f9c21bae4e4f55e3 to your computer and use it in GitHub Desktop.
Save sudarshang/34c095a863b62d32f9c21bae4e4f55e3 to your computer and use it in GitHub Desktop.
react-static generated webpack 4 generated html
<!DOCTYPE html>
<html lang="en-US">
<head>
<title data-react-helmet="true"></title>
<link rel="preload" as="script" href="/main.7e57ceeb.js" />
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" />
</head>
<body>
<div id="root">
<div data-reactroot="">
<nav><a class="active" aria-current="true" href="/">Home</a><a aria-current="false" href="/about">About</a><a aria-current="false" href="/blog">Blog</a></nav>
<div class="content">
<div>
<h1 style="text-align:center">Welcome to</h1><img src="/static/logo.9ff8fc2e.png" alt="" /></div>
</div>
</div>
</div>
<script type="text/javascript">
window.__CSS_CHUNKS__ = {
"styles": "/styles.css"
}
</script>
<script type="text/javascript">
window.__routeInfo = {
'path': '/',
'templateID': 0,
'sharedPropsHashes': {},
'localProps': null,
'allProps': {},
'siteData': {
'title': 'React Static'
}
};
</script>
<script defer="" type="text/javascript" src="/main.7e57ceeb.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment