hogan.js icon indicating copy to clipboard operation
hogan.js copied to clipboard

When using bower to install hogan, the node.js file is loaded

Open grnadav opened this issue 8 years ago • 0 comments

Hello

When installing hogan via bower & wiredep, it inserts a script tag to file
bower_components/hogan.js/lib/hogan.js which, when loaded in the browser throws error on first line (var Hogan = require('./compiler'); - require is not defined),
which is not surprising given that there's a comment right before the "require" that says: // This file is for use with Node.js. See dist/ for browser files.

there is no dist folder, but in the web/builds/3.0.2/ with all the build files in there.

grnadav avatar Nov 20 '16 11:11 grnadav