davidguttman / cssify

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

Concat CSS and output to css.bundle #21

Closed MylesBorins closed 5 years ago

MylesBorins commented 9 years ago

I'd love to see the ability to set and option and have all the css output as a file, rather than injected in the bundle.

This might be an amazing idea, it might also be complete feature creep.

I'm on the fence if this is something that makes sense as its own transform, or if it could be an option to cssify. While it is nice to be able to have the css injected by javascript... it isn't so nice when you first load the page, or when your page is loaded in a browser with js turned off.

davidguttman commented 9 years ago

JS can be turned off? ;)

Sounds good to me! Curious if we'll run into any issues generating a separate bundle (would there be any weird interactions with something like watchify?). Know of any other transforms that output separate files?

tamlyn commented 9 years ago

I was looking for something like this and discovered webpack which is similar to browserify but supports bundling JS, CSS, images and whatever http://webpack.github.io

Not used it but looks interesting.

faergeek commented 8 years ago

@TheAlphaNerd @tamlyn Are you still interested in this feature? Did you ever use something like partition-bundle or factor-bundle? I think that we could implement it with the help of these packages in some way.

ahdinosaur commented 8 years ago

from the conversation in https://github.com/davidguttman/cssify/pull/45#issuecomment-167536769, i just wrote bundle-cssify. keen to play around with how to achieve this feature through some modules.