I started using the tag in my Webpack app and noticed that the current setup is not working with the images referenced in the srcset:
<picture>
<source srcset="img/goal-2.jpg" media="(min-width: 675px)">
<img src="../img/goal-2-s.jpg">
</picture>
The goal-2-s.jpg is correctly resolved and copied over to my build folder, while the goal-2.jpg is ignored.
Currently my webpack.config.js config looks like this:
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: 'file?name=img/[name].[ext]'
},...
I don't want to auto generate files of different sizes -- I the files I'm loading are differently cropped and I do it manually and save it in my app folder. All I want is Webpack to handle my source's srcset image in the same way as it does the img's src image.
Thanks!