commonjs-everywhere icon indicating copy to clipboard operation
commonjs-everywhere copied to clipboard

Explain how it differs from browserify

Open rauschma opened this issue 11 years ago • 5 comments

Given browserify’s popularity, it probably makes sense to describe in the readme how CommonJS Everywhere is different from it.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2268391-explain-how-it-differs-from-browserify?utm_campaign=plugin&utm_content=tracker%2F297897&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F297897&utm_medium=issues&utm_source=github).

rauschma avatar Mar 19 '14 07:03 rauschma

And WebPack, I guess the difference is that it doesn't bundle files like html templates?

briandipalma avatar Mar 26 '14 14:03 briandipalma

I bundle my jade/stylus file in.

vendethiel avatar Mar 26 '14 14:03 vendethiel

Hey @Nami-Doc

I bundle my jade/stylus file in.

So there's a plugin for file (CSS/JSON/HTML) bundling that commonjs-everywhere can use? From my quick read of the front page README I didn't see one so I guessed that it didn't support such functionality.

briandipalma avatar Mar 26 '14 14:03 briandipalma

Not using any "plugins". It's pretty dumb to republish a whole set of plugins for every bundler that comes around (definitely one of the failures of the node community) ... The code for nephrite (my jade preprocessor)/stylus can be, for example, found here.

vendethiel avatar Mar 26 '14 15:03 vendethiel

Right so it's done via handlers then. OK I see now, thank you.

briandipalma avatar Mar 26 '14 15:03 briandipalma