Relative image urls in @wordpress/scripts 18.0.0 #34376
Labels
[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
Hey, In @wordpress/scripts 18.0.0 I understand that there is breaking changes.
I’m using this for compiling both js and scss. And I now get
TypeError: url.replace is not a function
when trying to compile a scss file that contains relative paths to image files, likebackground-image: url('../images/image.svg');
Thought it was because of me having a bit of a custom webpack config. But also failed with a fresly made @wordpress/create-block
Step-by-step reproduction instructions
npx @wordpress/create-block todo-list
background-image: url(../images/yourimage.svg);
to style.scssnpm run build
Screenshots, screen recording, code snippet
No response
Environment info
No response
Pre-checks
The text was updated successfully, but these errors were encountered: