Open egoist opened 5 years ago
This would be a good improvement. PR much appreciated.
I feel it would be better to just transform the path and leave wrapping in require()
on the compiler.
transformAssetUrls: {
'optimize-img': {
src: value => `'!optimize-img-loader!${value}'` // transform the path.
}
}
Allow
transformAssetUrls
to be used like this:I can create a PR if you think it's useful.