How can I use the file-loader to save full images paths?
my loader cfg
test: /\.(png|jpe?g|gif|ico)$/,
use: [ 'file-loader?name=[name].[ext]&outputPath=images/' ]
img path src/images/1.jpg and src/images/section/2.jpg
On production I get dist/images/1.jpg
and dist/images/2.jpg
I tried to change to use: [ 'file-loader?name=[path][name].[ext] ]
But got on production dist/src/images/1.jpg
and dist/src/images/section/2.jpg
How do I change my loader setting to get on production dist/images/1.jpg
and dist/images/section/2.jpg
?
"file-loader": "^0.11.2"
"webpack": "^3.5.5"
Thanks