Closed danielmoore closed 8 years ago
Thanks @danielmoore , looks interesting. Sorry for the delay, I'm trying to find some time to give a proper review before merging :)
Btw have you tried using css-modulesify
with factor-bundle
?
I'm actually using this change in conjunction with zoubin/factor-vinylify#1
Thanks @danielmoore ! I'll merge this now, and I'm also in the middle of a cleanup which will affect a few things here. So I'll ask you to check it once more after the cleanup.
This PR moves the CSS and JSON emitting to the
pack
stage of the Browserify pipeline, similar to howfactor-bundle
works. This change enables other plugins to listen to thecss stream
event and react within the Browserify pipeline as well.This PR also uses
module.parent.require
to pull in plugins that were given by string. This has no effect in normal situations, but allows this library to be linked in vianpm link
.