Landing page for Evitt
When making changes to any SCSS files, you will need to rebuild the project:
npm run css:devAlternatively, you can watch for changes while developing:
npm run watch:cssNote: This will only compile and autoprefix the CSS, not minify it. This is mainly done for speed during development
- Install nvm (Node Version Manager) using the directions at https://github.com/creationix/nvm#installation
nvm usenpm installnpm run watch:css- Run a local server in the
public/directory
Whenever you enter this repo's directory, you should always run nvm use before doing anything, so that you use our sanctioned version of Node.
We use the gh-pages npm module to manage deployment to Github Pages
- First make sure
public/index.htmlis referencing the minified CSS file npm run css:prod- Add and commit your local changes (make sure you also commit the minified CSS file)
npm run deploy
This will prepare all SCSS for production and publish only the contents of the public/ folder to the gh-pages branch
NOTE: Don't delete the CNAME file. WIthout it the custom domain on Github Pages breaks. ANy time the domain needs to be changed, it should be changed manually in the CNAME file