I have followed these steps:
npm run dev
)dist
directory of my master
repository (also tested using VSCode's Live server plugin, works fine).dist
directory to the gh-pages
branch using: gh-pages -d dist
augusto-moura.github.io/
), I changed the Source to gh-pages
.The gh-pages
branch seems to hold exactly what it's supposed to, but as I open the page, the scripts aren't loaded and each return a 404 eror.
What am I doing wrong? GitHub seems to not be serving the JS files inside the _nuxt
directory.
As indicated in the How to deploy on GitHub Pages? guide, in this tiny, easy-to-miss note...
Branch
gh-pages
for project repository OR branchmaster
for user or organization site
In order to use Pages for your user account, you need
push-dir --dir=dist --branch=master