-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP Scripts: Update webpack dependencies related to styling #67572
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -38 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
@@ -103,7 +103,7 @@ const baseConfig = { | |||
target, | |||
output: { | |||
filename: '[name].js', | |||
chunkFilename: '[name].js?v=[chunkhash]', | |||
chunkFilename: '[name].js?ver=[chunkhash]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d694d83
to
880192f
Compare
@@ -149,8 +149,8 @@ | |||
"resize-observer-polyfill": "1.5.1", | |||
"rimraf": "3.0.2", | |||
"rtlcss": "4.0.0", | |||
"sass": "1.35.2", | |||
"sass-loader": "12.1.0", | |||
"sass": "1.50.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a more up-to-date version of sass,
, but there are too many deprecations reported in the Gutenberg codebase, so I went with the highest possible version that doesn't warn. It isn't essential for the fix, but I thought it would be great to bump the version as part of the effort.
Flaky tests detected in 8f6dd7d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12195334190
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes make sense, thank you!
36a2f92
to
8f6dd7d
Compare
What?
Fixes the deprecation notice reported from
sass-loader
:Steps to reproduce:
npx @wordpress/create-block@latest my-block cd my-block npm run build
Why?
It was raised during the Developer Hours: Improve your workflows with WordPress development tools yesterday as a concern that it might to stop working.
How?
Updated several webpack dependencies in
@wordpress/scripts
package.Testing Instructions
Creating a test plugin with SCSS files and running
npm run build
should do the trick. This is the commands I used for testing in Gutenberg:npx wp-create-block my-block --no-wp-scripts cd my-block ../node_modules/.bin/wp-scripts build