> On Feb 14, 2017, at 6:00 PM, Alex Harui <aha...@adobe.com> wrote:
> 
> An Emitter could change the goog.requires in every file, and even use a
> different require system like RequireJS.

This might be a good solution. The initial compilation could be optimized for 
Node (and just require() all the assets) and it could then use Browserify or 
Webpack to bundle it all for use on the web. It is a major departure from what 
the compiler does now, however.

> If the <head> needs to be different between Browser and Node, then you
> could introduce inject_node_html and have the NodePublisher check for that
> instead of inject_html.

Node does not have <head> The Javascript is executed directly by the Node.js 
engine.

Reply via email to