vue更改静态资源img的名称
config.module.rule('images').use('url-loader') .loader('file-loader') // replaces the url-loader .tap(options => Object.assign(options, { name: 'img/approverIcon/[name].[ext]' })) config.module.rule('svg').use('file-loader') .tap(options => Object.assign(options, { name: 'images/[name].[hash:8].[ext]' })),
参考资料:
https://www.csdn.net/tags/MtTaAg0sNzgxNTktYmxvZwO0O0OO0O0O.html