Open selbekk opened 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.
node_env
production
enableManifest
Make sure that the manifest is included in production (that the node_env environment variable is actually set to production in production.
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:
When calling this template, check whether the
node_env
is set toproduction
or not and set that boolean value to theenableManifest
context variable.Make sure that the manifest is included in production (that the
node_env
environment variable is actually set toproduction
in production.