Quick static site template
Rapid and disposable prototyping
- tags
- transient
- buildless
- vite
Contents
I've been trying to figure out minimal ways to try out ideas. Basically an easy way to throw up some code on the browser to test out what is possible without going through a whole thing. Right now I'm settling on vite and unocss, which just lets you start going with one HTML file and slowly be able to put stuff on it.
This lets me add npm
packages, see if I can get something working or
not, and leave it at that. I'll record my notes somewhere, but the
code and the node_modules
thankfully disappear into the aether
afterwards.
Plan
This is script I use to boilerplate things:
- Create a new temp directory
- Install vite and unocss
- Setup the
dev
andbuild
actions - Setup
unocss.config.js
so I can play with fonts - Mock out a simple HTML file
Code
|
|
Example: Adding shoelace
Run the script, and then in the generated directory:
|
|
Add in main.js
:
|
|
And then start using the web components inside of your html
file.
|
|
References
Previously
Next