cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.08k stars 399 forks source link

Compress end user CSS #1537

Open Ne-Ne opened 3 years ago

Ne-Ne commented 3 years ago

Is your feature request related to a problem?

Not related to a problem, more of an improvement.

Describe the solution you'd like

I would like prop on JssProvider, which has a side effect to override the modification of the end CSS from react-jss output. By default behaviour to NODE_ENV (e.g. development === verbose).

unminified output example

Are you willing to implement it?

It depends on the breadth of the change, I am not too familiar with the required changes. But happy to start a conversation. I have little time available but can try and contribute back.

Managing expectations:

It would be great to have a manual override to either leave the compiled CSS as verbose or compressed. The change would require, little long term energy in maintaining.