Images mixed up in dist (Sage 9)


I’m running into an issue with the image output in dist after building for production. I have two SVG files in resources/assets/images, icon-tap.svg and icon-tap-white.svg.

Everything is fine when building for the dev environment (no production flag passed to yarn). When I build for production, I end up with two SVG files in dist/images named icon-tap_(random characters).svg and icon-tap-white_(random characters).svg.

The problem is that despite the names both image files actually are the first image, just bundled twice with the different name.

Any help debugging would be appreciated!

– Matt