A simple todo app as a progressive web app.
git clone [email protected]:wdzajicek/todo-pwa.git
cd todo-pwa
npm i && bundle i
Changes to _config.yml
, webpack.config.js
, postcss.config.js
, package.json
, require the build process be stopped and then restarted.
Do not push a development build to the GitHub repo.
Running a development build:
npm run development
http://localhost:3002
)Running a production build:
npm run production
http://localhost:3002
)gh-pages
script._site/*
into docs/*
.To run a build for GitHub pages, run the following script already defined in package.json
:
npm run gh-pages
After the build runs, copy the entire contents of the _site/
directory containing the new gh-pages
build and paste it into docs/
.
Next, add the changes to a new commit and push to the master branch (GitHub pages is setup for master
in ./docs/
.)