[Doc] use cdn to speedup site

This commit is contained in:
陈嘉涵
2019-08-02 14:35:10 +08:00
parent 70a014e388
commit 7ae750ec46
6 changed files with 17 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
rm -rf docs/dist
npx cross-env NODE_ENV=production webpack --config build/webpack.doc.js
superman-cdn cdn /vant ./docs/dist/*.js
rm -rf docs/dist/*.js
gh-pages -d docs/dist --add