wp-scripts build
doesn't minify CSS that was @import
#55885
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Needs Dev
Ready for, and needs developer efforts
[Status] In Progress
Tracking issues with work in progress
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
Description
When building, part of the CSS is imported from another file. The CSS at the entry point is minified and processed with prefixes. However, the imported CSS is inserted "as is" without minification and prefix processing.
Step-by-step reproduction instructions
Create
external.css
withCreate
entry.css
withIn
package.json
addbrowserslist
property:In project root add
webpack.config.js
:Run
wp-scripts build
After that you should find
build/main.css
folder in project root.Expected
main.css
contentActual
main.css
contentScreenshots, screen recording, code snippet
No response
Environment info
@wordpress/scripts: 26.16.0,
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: