Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.17 KB

The new modernizr.com

Build Status

This is now live at modernizr.com

setup

npm install
bower install

development

npm run develop

this will start a hapi server on port 3000 that will recompile assets on change via nodemon

deployment

npm run deploy

this will generate a compiled and compressed static version of the website in the /dist directory

production

Since npm run deploy generates a static site, any webserver will work. Just point it at the new /dist folder as a root. However, if you use the included Hapi server to serve the assets you get extras, including

to get all that run

NODE_ENV=production node ./server

from the root of this project

you can also set NODE_PORT to override the default port of 3000