Skip to content

Conversation

@Profesor08
Copy link
Contributor

@Profesor08 Profesor08 commented Nov 11, 2025

The issue comes from outdated css-minimizer-webpack-plugin and cssnano. Current pull request updates css-minimizer-webpack-plugin to newer version, with newer cssnano where this issue is fixed. Also updates test, to make sure this issue will not happen again.

Describe the bug

.item {
  height: calc-size(auto, size);
}
File: file.css:1:1
  ⚠ file.css from Css Minimizer plugin
  │ postcss-calc: file.css:828:5: Lexical error on line 1: Unrecognized text.
  │
  │   Erroneous area:
  │ 1: auto, size
  │ ^..^

@chenjiahan chenjiahan changed the title Fixed cssnano error: Lexical error on line 1: Unrecognized text feat: update css-minimizer-webpack-plugin to v7, fixed cssnano lexical error Nov 12, 2025
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chenjiahan chenjiahan merged commit bff5c0a into rspack-contrib:main Nov 12, 2025
2 checks passed
@chenjiahan
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants