- In
router/index.ts
, comment outmode: 'history',
- In
vue.config.js
, addpublicPath: '/flow-builder/',
to top level export - In
package.json
, add"build": "vue-cli-service build",
toscripts
section - via https://cli.vuejs.org/guide/deployment.html#github-pages:
yarn build
cd dist && \n
git init && \n
git add -A && \n
git commit -m 'deploy' && \n
git push -f [email protected]:FLOIP/flow-builder.git master:gh-pages; \n
cd -
- Push above into a package.json command (under scripts) using
GH_PAGES
as our environment - Set up automatic updates via: https://cli.vuejs.org/guide/deployment.html#using-travis-ci-for-automatic-updates