My awesome blog built with preact
git clone --depth 1https://github.com/sunnywx/sunnywx.github.io.git my-blog
cd my-blog
yarn
yarn dev
yarn build
yarn serve
yarn dep:github
yarn dep:vps
-
npx gh-pages -d build -b gh-page
fatal: A branch named 'gh-page' already exists. 解决方法:rm -rf node_modules/.cache/gh-pages
-
如果报 openssl错误, 就是node版本太高, 建议降到 v14, 或者在script前加
NODE_OPTIONS=--openssl-legacy-provider
MIT