"Quote of the Day" returns a new Bruce Lee quote everyday or every time you refresh the page. :muscle:
Steps for Deployment:
When app is ready to deploy run following:
npm run deploy
- In package.json add "homepage": "http://www.mudanic.com" field
- Install npm package gh-pages: > npm install --save gh-pages
- Add following code to package.json
"predeploy": "webpack --config webpack.config.js", "deploy": "gh-pages -d dist"
- "predeploy": runs once
npm run deployis ran; purpose: builds/bundles code before publishing to gh-pages branch; gets a fresh bundle of code, based on webpack.config.js file.
- "deploy": runs with the command
npm run deploy; will run
npm run predeploycommand; takes "output filename" (dist) folder that was just freshly bundled from the predeploy command, adds, commits, pushs new dist folder to gh-pages branch.