I use webpack 3 and file-loader. I need a copy directory '/images/**' with the same relative path and files to my build directory.
For example:
I have 'src/images/icon/', 'src/images/bg/', 'src/images/temp/*' etc. And I need copy the same structure in my 'dist/images'?
How can I do it ... because right now any options what I used just create one directory 'images' and I can't find the way to copy all structure with all files included there. Can the 'file-loader' do it?
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader',
options: {
outputPath: 'images',
}
}
Thanks