Presenting... 📋 Minified 1 File HTML Website w/ CSS & Server 📋
h
RayhanADev

Through an interesting chain of experiments, I have reduced a typical website with backend, css, etc. down to a single .js file with three lines!

Presenting... 📋 Minified 1 File HTML Website w/ CSS & Server 📋

This .js file only occupies three (long) lines and uses ExpressJS to send a line of text that’s stored in a variable and sets the headers to allow it show the site!

Line #1 —>

Line #2 —>

Line #3 —>

^ The code (don’t account for text-wrapping) ^

This is just made for fun, and honestly isn’t a recommended way to create a website, but you should try it out if you ever feel bored! Check the code out here and take a look at the site here.

Got any questions, comments, or ideas to minify this even more. Let me know in the comments below!

You are viewing a single comment. View All
RayhanADev

@fuzzyastrocat lmao, sure it could be. For the sake of my braincase i kept it three lines xD.