evidence.dev allows us to spin up static sites.
- From the root, run:
npx degit evidence-dev/template project-name
- Change into your new project folder:
cd project-name - Install dependencies:
npm install
- To compile sources:
npm run sources
- For hotloading development:
npm run dev
- To generate a static bundle:
npm run build
This will create a static bundle in the build folder, which can be served from the index of a server. References in the index.html file are relative, so it must be served from the root of a server or subdomain.