-
Notifications
You must be signed in to change notification settings - Fork 486
Support 'paths' option #140
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
Comments
So |
Wow it totally worked...Thanks! There's no work around except "./"? Seems overkill as the require system works perfectly without :( |
That part of the system is derived from browserify, and browserify rejects this input: if a require statement doesn't begin with |
Hmm, I just switched the app from a browserify app to a webpack one, and browserify compiled it well before.. Hmm. Anyway, thanks for the tips! |
I actually give to webpack/browserify an array of entry paths for the module definitions, array that documentjs doesn't have :( There's no way to specify such a thing? |
Could you be a little clearer? What option do you use in particular with browserify/webpack? Documentation.js supports multiple entry points as multiple args to the binary or as an array to the API level. |
Sorry! Here's the webpack config I'm using
I'm using gulp on top of it (so gulp-documentation as well) |
Is there an equivalent option in browserify? I'm a little hesitant to pursue webpack-isms, since they deviate pretty far from what CommonJS & node do. |
Sure!
|
👍 thanks, looks like we can pass a |
Would be awesome! |
just one small wish since it has not being mentioned, resolving paths from NODE_PATH would be great |
+1 for resolving from NODE_PATH, this would allow me to bypass my multiple roots in webpack by just including those folders in my NODE_PATH. I believe module-deps already does this (from https://github.com/substack/module-deps)
|
I probably do something wrong, but I'm building a webpack application (classic CommonJS app), and documentationjs seems to stop at the main.js without resolving the required modules.
What do I do wrong? Thanks!
The text was updated successfully, but these errors were encountered: