require icon indicating copy to clipboard operation
require copied to clipboard

README and examples/connect.js need to be updated

Open zahanm opened this issue 14 years ago • 2 comments

From what it took to get the 'require/server' working as connect middleware, it looks like you expect an object like

{
    root: 'require',
    path: path.resolve(__dirname,'static'),
    host: HOST,
    port: PORT
}

but this is at odds with the contents of connect.js and the README. I wasn't quite sure what path and root referred to respectively, but I think I figured it out.

Could you update the docs please? Or I will with what I understood once I get a moment.

zahanm avatar Aug 12 '11 10:08 zahanm

Hey,

Thanks for the note! I'm not surprised it's out of date; thanks for the heads up.

Any clarifications you've got, feel free to fork and fix.

Cheers!

marcuswestin avatar Aug 12 '11 17:08 marcuswestin

Thanks marcus! That was really quick. :) Sure, I'll do it when I get some time.

zahanm avatar Aug 15 '11 05:08 zahanm