mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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
7 lines
134 B
CSS
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;
|
|
}
|