Publish static websites to GitHub Pages (or any Git) cleanly with gh-pages
This is as simple as npm run build && gh-pages -d dist
, and there will be no pollution from build remnants. You can safely as /dist/
to .gitignore
.
The new branch called gh-pages
will be created, with only built elements, no other code.
See the package here