Skip to content

Commit a4c11d9

Browse files
author
Xun Qiao
committed
add config file
1 parent a6fc388 commit a4c11d9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

deploy.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
# build
3+
npm run build
4+
5+
# cd to dist folder
6+
cd dist
7+
8+
# push code to gh-pages branch
9+
git init
10+
git add .
11+
git commit -m "gh-pages"
12+
13+
git push -f git@github.com:qiaoxun/vue-formbuilder.git master:gh-pages

vue.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
publicPath: process.env.NODE_ENV === "production" ? "./" : "/"
3+
};

0 commit comments

Comments
 (0)