1
mirror of https://github.com/jakejarvis/dark-mode.git synced 2025-06-27 16:45:40 -04:00

bundle into a UMD script via webpack for both browser & node

This commit is contained in:
2021-08-04 11:31:37 -04:00
parent 0d48f8e8af
commit df3b462de0
9 changed files with 1311 additions and 55 deletions

View File

@ -13,6 +13,11 @@
<p><a href="https://github.com/jakejarvis/dark-mode-example" target="_blank" rel="noopener">View the source code</a> or <a href="https://jarv.is/notes/dark-mode/" target="_blank" rel="noopener">read the post</a>.</p>
<script src="main.js"></script>>
<script src="../dist/index.js"></script>
<script>
window.darkMode({
toggle: document.querySelector(".dark-mode-toggle"),
});
</script>
</body>
</html>

View File

@ -1,5 +0,0 @@
import darkMode from "../index.js";
darkMode({
toggle: document.querySelector(".dark-mode-toggle"),
});