xeira
Version:
One Web Dev stack tool to rule them all
38 lines (34 loc) • 1.23 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>APPNAME demo</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<body>
<div id="demo-container"></div>
<!--
Xeira demo uses 'rollup-plugin-node-externals', meaning that all
the 'dependencies' and 'peerDependencies' in your package.json will be external, it is,
will not be included in the bundle.
You need to find the right files and link them here.
-->
<!--
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
-->
<script src="dist/bundle.js"></script>
<script>
// Sanity-check the component loaded...
setTimeout(function () {
var content = document.querySelector("#demo-container");
var warning = "If you can see this, something is broken (or JS is not enabled)!";
if (!content.innerHTML) {
content.innerHTML = warning;
}
}, 500);
</script>
</body>
</html>