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:
@ -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"),
|
||||
|
Reference in New Issue
Block a user