$ yarn install
$ yarn run serve
yarn run build
- Create a file config
vue.config.js
with the following code:
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/portfolio/'
: '/'
}
- Installed
gh-pages
yarn add gh-pages -D
- Added the script to the package
package.json
"scripts": {
"deploy": "gh-pages -d dist"
}
Copyright (c) @yesworld