I'm struggling to figure out how to remove the generated hash on the images files names, not able to find the right syntax into my vue.config.js, any ideas ?
module.exports={chainWebpack:config=>{config.module.rule('images').test(/\.(png|jpe?g|gif|webp)(\?.*)?$/).use('url-loader').loader('file-loader')// not url-loader but file-loader !.tap(options=>{// not .option() but .tap(options...)// modify the options...options.name='img/[name].[ext]'returnoptions})}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Alexandru !
I'm struggling to figure out how to remove the generated hash on the images files names, not able to find the right syntax into my
vue.config.js
, any ideas ?20 minutes later update
Ok, I got it !