0👍
✅
Ok I managed to find a way :
chainWebpack: (config) => {
config.module
.rule("svg")
.set('generator', {
filename: "[contenthash][ext]"
})
config.module
.rule('file')
.test(/\.(xlsx|xls|csv)(\?.*)?$/)
.set('type', 'asset')
.set('generator', {
filename: "[contenthash][ext]"
})
},
I don’t really what the .set functions really do, but it works. If anyone can bring an explanation, I’d appreciate !
Source:stackexchange.com