I am using Webpack to output files into a dist folder.
The directory structure is like so:
client/public/dist
inside which bundle.js
and styles.css
sit.
My file-loader setup is:
{
loader: 'file-loader',
test: /\.(png|jpg|gif)$/,
options: {
name: '[path][name].[ext]'
}
}
However what this is doing is putting my images inside another public directory like this:
client/public/dist/public/images
I'd prefer this:
client/public/dist/images