gulp-fingerprint
gulp-fingerprint copied to clipboard
requiring rev-manifest
Just going through the doc atm, im getting problem on requiring the rev-manifest.json file.
var manifest = require('../../dist/rev-manifest');
I get this error Error: Cannot find module './path/to/rev-manifest'
. Does require not work for json files anymore, and has to be modules ?
Should it be:
var manifest = '../../dist/rev-manifest';
@adrianchen19888 require works fine for JSON files, make sure your path is correct.
Had the same problem. Nothing worked, except:
var manifest = require(__dirname + '../../dist/rev-manifest');