How to make a Vanilla JavaScript module work with Webpack

Step 1: Copy over old code
For most of the cettia file, I just pulled the code out of that export wrapper and reindented it. I placed it in the src folder to keep it seperate from the
Step 2: Make…

Similar

Dark mode images without JavaScript

The <picture> element supports media query matchers and if you want to specify a different image for dark mode, you can use a different <source>. So, if there are no suitable matches or if the browser doesn’t support the <picture> elemen... (more…)

Read more »