mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Enable hot module replacement(HMR) (#1100)
* Use ES6 in static/main.js + Lint static/main.js * Enable hot module replacement(HMR) in webpack-dev-server * Disable no-console in static/main.js * Use seperate entry point/bundle for the test page(/static/main.js)
This commit is contained in:
committed by
Kevin Barabash
parent
603f12df8d
commit
30854eb866
@@ -3,8 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>KaTeX Test</title>
|
||||
<script src="katex.js" type="text/javascript"></script>
|
||||
<link href="main.css" rel="stylesheet" type="text/css">
|
||||
<script defer src="/main.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="input" rows="5">
|
||||
@@ -14,6 +13,5 @@
|
||||
</textarea>
|
||||
<div id="math"></div>
|
||||
<input id="permalink" type="button" value="permalink">
|
||||
<script src="main.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user