- Notifications
You must be signed in to change notification settings - Fork0
Van conversion diary
NotificationsYou must be signed in to change notification settings
jackokaiser/vanlab
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# install dependenciesyarn# serve with hot reload at localhost:8080yarn dev# build for production with minificationyarn build# run tests with jest and preact-render-spyyarntest
For detailed explanation on how things work, checkout theCLI Readme.
Note: When pre-rendering, your module as components are executed in a Node.js environment, where most Web APIs are not available. To account for this, wrap that code in a check likeif (typeof window !== 'undefined')
.Do not addpreact build --no-prerender
to the build command as it will prevent blog posts from rendering.
Usemake_email.sh
to generate html e-mails, for example:
make_email.sh 2022-summary
This will create html e-mails incontent/mails/
, (git-ignored).Open the html files in a web browser and copy-paste them into your mail client.