Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to extract styles out to css file using Browserify and Webpack #63

Open
KyleAMathews opened this issue Feb 24, 2015 · 2 comments
Open

Comments

@KyleAMathews
Copy link

Has anyone done this and want to share their method?

@chenglou
Copy link
Owner

Feels like there's no safe way to do this? You'd have to run some code. (Btw there are other similar libs that achieve this).

What's the motivation though?

@KyleAMathews
Copy link
Author

The thought was that for server side rendering, rendering css would add a bit of overhead that could be avoided if you prerendered the css and pulled it out into a separate file. But this is probably premature optimization, it couldn't take more than a handful of miliseconds at worst and at least for my use case, most SSR pages will be cached heavily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants