You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS get bundled which breaks with custom properties #7748
With react-scripts build some css longhand properties get merged to a shorthand.
This is not always the desired result and is breaking with css custom properties.
It would be nice if we could disable some compression options on a react build via a config. Example also with the calc minification from css nano
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I'm facing a similar issue too. Would be good to be able to override the nano defaults. In my case they are minifying the font-face declaration which then breaks fonts in IE11
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
@ianschmitz indeed. The best possible fix would be the ability to override the CSS minification defaults via package.json. Does CRA import overrides via package.json for any other customisation?
I am closing this issue, since I have moved from CRA to other options, also the lack of activity is not helping.
If someone is interested to pick this up, please reopen the issue or create a new one.
Activity
[-]CSS get bundle which breaks with custom properties[/-][+]CSS get bundled which breaks with custom properties[/+]stale commentedon Oct 28, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
sidonaldson commentedon Oct 30, 2019
I'm facing a similar issue too. Would be good to be able to override the nano defaults. In my case they are minifying the font-face declaration which then breaks fonts in IE11
GrimLink commentedon Nov 1, 2019
@sidonaldson yes, that would probably be the best way to handle this issue
stale commentedon Dec 1, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
GrimLink commentedon Dec 1, 2019
Is anyone of the CRA team looking at this?
sidonaldson commentedon Dec 6, 2019
I've added a PR to cure my specific issue but not to allow any overrides to be passed through #8106
ianschmitz commentedon Dec 9, 2019
I've merged #8106, but i don't believe that will fix this issue.
sidonaldson commentedon Dec 9, 2019
@ianschmitz indeed. The best possible fix would be the ability to override the CSS minification defaults via package.json. Does CRA import overrides via package.json for any other customisation?
ianschmitz commentedon Dec 9, 2019
We generally don't. I'd prefer if we find a better default configuration that solves this issue instead of exposing postcss etc.
GrimLink commentedon Jul 20, 2022
I am closing this issue, since I have moved from CRA to other options, also the lack of activity is not helping.
If someone is interested to pick this up, please reopen the issue or create a new one.