# 打包 => dist npm run build; # 打包 插件 npm run lib; #推送到npmjs npm publish; # 更新gh-pages git branch -D gh-pages; git checkout -b gh-pages; git add -f dist; git commit -m 'create gh-pages'; git push origin -d gh-pages; git subtree push --prefix dist origin gh-pages; # 推送完成后切换回master git checkout master;