selbekk / stop-the-rain

A web app that will stop the rain for ya!
1 stars 2 forks source link

Disable app manifest in development by default #30

Open selbekk opened 9 years ago

selbekk commented 9 years ago

Developing something while having an app manifest attached to your web app is an absolute nightmare.

Suggested solution: Add something like this to the main.handlebars layout file:

<html 
    {{#if enableManifest }}manifest="/assets/manifest.mf"{{/if}}>

When calling this template, check whether the node_env is set to production or not and set that boolean value to the enableManifest context variable.

Make sure that the manifest is included in production (that the node_env environment variable is actually set to production in production.