I'm learning webpack .I've read about execution order of loaders.They are executed from right to left.And the result of one loader is passed to next loader,It's clear.But than I faced with such example:
{
test: /\.(jpe?g|png|gif|svg)$/,
use: [
'url-loader',
'image-webpack-loader'
]
}
This example works.And it works when we change the order of loaders.I don't understand this moment.According to documentation the first loader should be 'image-webpack-loader' as it is placed at the very right.But in that case there should be error as this loader cannot work with images without url-loader.