Webpack build failure when specifying CSS background-image style that has more than one URL #31565
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
type: upstream
Issues outside of Gatsby's control, caused by dependencies
Description
I recently upgraded from 2.32.4 to 3.5.1. I worked out all the migration issues and everything looked great when running it in development mode. However, when I ran
npm run build
I received a Webpack error related to the Css Minimizer indicating invalid URLs.These two URLs were related to SVG images that I had used in a style to define a background image with more than one image. When I use a single image in the background image everything works OK, it's when I define more than one.
Steps to reproduce
component.js
styles.module.css
Expected result
The build should complete successfully.
Actual result
The build failed when I used multiple images in the style. It worked with a single image, but when I defined more than one that's when it failed.
Here is the error from the
npm run build
commandEnvironment
The text was updated successfully, but these errors were encountered: