Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requiring rev-manifest #12

Open
Melonbwead opened this issue Aug 19, 2014 · 2 comments
Open

requiring rev-manifest #12

Melonbwead opened this issue Aug 19, 2014 · 2 comments

Comments

@Melonbwead
Copy link

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';
@kflorence
Copy link

@adrianchen19888 require works fine for JSON files, make sure your path is correct.

@gregory90
Copy link

Had the same problem. Nothing worked, except:

var manifest = require(__dirname + '../../dist/rev-manifest');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants