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

much simpler bundling with rollup, also generate separate ESM and CJS files

This commit is contained in:
2021-08-04 19:16:33 -04:00
parent 1c2b15d70f
commit eedd0a96e0
10 changed files with 2411 additions and 984 deletions

View File

@ -13,7 +13,7 @@
<p><a href="https://github.com/jakejarvis/dark-mode" 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="../dist/index.js"></script>
<script src="../dist/dark-mode.js"></script>
<script>
window.darkMode.init({
toggle: document.querySelector(".dark-mode-toggle"),