Jekyll & Webpack project
git remote -v
to verify).# jekyll directory
# install the jekyll version compatible with gh-pages
$ gem install bundler && bundle install
# root directory of the project
# install npm dependencies
$ npm install
# build for development, site will run at localhost:8080
$ npm run dev
# build for production
$ npm run build
# pre-deployment (commit & push to github on master branch)
$ git add .
$ git commit -m"message goes here"
$ git push
# deployment (push to github on gh-pages branch)
$ npm run deploy
Then visit your gh-pages url and view the site!