app-site assets from your node app.
This is meant to simplify development of node apps outside of
dev-vagrant only. This module should not be used in production.
npm i --save nw-global-nav-asset-shim
var app =if processenvNODE_ENV === 'development'var shim =
Shims the following asset routes:
/css /js /global-styles
global-nav (via something like
nw-nerdlayoutjs) you get a
payload used as the layout for your app. Parts of the layout reference global
assets that make up things like the global header and footer styles and js. If
you want to run your node app outside of
dev-vagrant you'll need to serve
these assets yourself so something like
resolves correctly. These assets live in your
app-site clone, so this shim
just serves from your local clone at the expected routes (see above).