Skip to content

Instantly share code, notes, and snippets.

@vitalets vitalets/index.html
Created Dec 6, 2017

Embed
What would you like to do?
Mocha ES6 modules: index.html with fallback
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link href="https://unpkg.com/mocha@4.0.1/mocha.css" rel="stylesheet" />
<script src="https://unpkg.com/mocha@4.0.1/mocha.js"></script>
</head>
<body>
<div id="mocha"></div>
<script type="module" src="setup.js"></script>
<script type="module" src="run.js"></script>
<script nomodule src="bundle.js"></script> <!-- for older browsers -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.