# Puesta en producción
$ npm run build
# Github Pages
$ npm i gh-pages
publish.js
const ghpages = require('gh-pages')
const BRANCH = 'gh-pages'
const FOLDER_DIST = 'dist'
const TODAY = new Date().toLocaleString()
console.log(`start publishing folder ${FOLDER_DIST} to ${BRANCH}`)
ghpages.publish(FOLDER_DIST, {
branch: BRANCH,
message: `Publishing folder ${FOLDER_DIST} to ${BRANCH} in ${TODAY}`
}, () => {
console.log(`done publishing folder ${FOLDER_DIST} to ${BRANCH}`)
})
$ node publish.js
# vue.config.js
module.exports = {
publicPath: '/adc-music'
}