Material-ui: Generate single style.css

Created on 19 Mar 2019  路  6Comments  路  Source: mui-org/material-ui

Why material ui render all styles as string ?
Is it possible to generate single static css file for used components ?

discussion

All 6 comments

@vetalstar What do you think of https://github.com/oliviertassinari/material-ui-generate-css-file/blob/master/src/static-styles.js? It's something I have hacked in a few minutes.

Not bad, but I'm looking for a ready-made solution with generation of css unique name for production, manifest.json )

@vetalstar I don't understand what you are trying to do. Have you looked at server-side rendering? Maybe it's what you are looking for.

Maybe if you are something more specific with what you are looking for, it would be faster to help @vetalstar

@oliviertassinari yes, I'm looking for generating css file on server side

@vetalstar We don't fully support it but you can hack it. Now, it shouldn't be needed. In v5, we want to isolate the core components to the styling solution, maybe we will find something that work for you by luck.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nathanmarks picture nathanmarks  路  100Comments

mnajdova picture mnajdova  路  105Comments

cfilipov picture cfilipov  路  55Comments

aranw picture aranw  路  95Comments

NonameSLdev picture NonameSLdev  路  56Comments