wp-scripts: minification of CSS imports is done too early in the process #61112
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
CSS files that are imported are minified, but the minification happens to early.
Each imported file is minified, but there's a line break between each import in the resulting file.
This is an improvement of #56516.
Example:
Content of global.css
Result
Expected result
What is your proposed solution?
Adjust the webpack.config.js to use
postcss-import
beforecssnano
The text was updated successfully, but these errors were encountered: