Files
Joe HaddadandGitHub 61c3db7368 Fix minifying inline CSS comments (#19167)
We accidentally regressed back in 9.5 and dropped support for inline CSS comments. PostCSS always parses these as pass-through (and not a syntax error), which can cause problems when minifying.

Browsers do a similar thing and ignore the comments.

To ensure we generate valid CSS, this adds support for stripping the CSS comments from the build.

--- 

Fixes #15589
Closes #17130
2020-11-14 15:03:04 +00:00

7 lines
134 B
CSS

// Aaaand we are dead
// These comments are invalid CSS and it crashes the build since Next.js 9.5.0
* {
box-sizing: border-box;
}