# set up to do one
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Init gh-pages branch"
git checkout main
git worktree add dist/static gh-pages
# what is done at the end of the npm:build script
cd dist/static
git commit -a -m "message commit"
# what you need to do in the end
npm run build
git push gh-pages
https://gist.github.com/lajlev/4b1d0207f87d0a8e9cf20fc78a6fd60a
Tailwind doesn't work well with ng serve, save tailwind.config.js to reload the code if it bugs.
Once jekyll is installed
$ bundle exec jekyll serve
$ bundle exec jekyll build