home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Make And Use A JavaScript Module Directly Inside A Single HTML File

April 2024

Introduction

I like writing completely self contained files in my notes that publish and work directly on my site without additional build steps or processing. I'm also moving more and more to using JavaScript modules for things. It took a bit to figure out how to combine those two since modules usually come as separate files.

Here's what I'm doing:

Details

With all that in place I can write a single file that includes the module directly. I really like the approach.

═══ § ═══

Footnotes And References