Minimal Svite set-up made deployable to GitHub pages.
Customize the base directory and assets directory.
base
should be either "" (relative path) or the public path of your repo (i.e. "/svite-gh-pages/")assetsDir
should not begin with an underscore (GitHub Pages ignores folders beginning with "_")"scripts": {
- "build": "svite build",
+ "build": "svite build --base= --assetsDir=assets",
}
Use degit to quickly scaffold a new project:
npx degit metonym/svite-gh-pages my-app
cd my-app && yarn install
First, build the app by running yarn build
.
Then, run yarn deploy
.
name
and version
from package.json
. This is useful for documenting component libraries.