davidguttman / cssify

Simple middleware for Browserify to add css styles to the browser.
122 stars 19 forks source link

css-modules and writing to disk #25

Closed faergeek closed 8 years ago

faergeek commented 8 years ago

I think it would be logical for this plugin to become slightly more feature-rich than it is now.

I would like to see css-modules support and writing to a file (through options, of course). I can help with implementing both of them.

If file writing is going against the idea of this plugin, can you tell me how do you extract css from js in production?

faergeek commented 8 years ago

Also would be good to allow the user to tell which files to process.

davidguttman commented 8 years ago

Both sound great!

faergeek commented 8 years ago

I submitted two PRs #26 and #27

To support writing to disk I think we need a new file functioning as a plugin, instead of transform.

faergeek commented 8 years ago

Or probably it's better to create a separate plugin for that if something like that does not exist. Or somehow use brfs for that, any ideas?

faergeek commented 8 years ago

I think that disk writing should be dedicated to separate plugin/transform, so closing this.