配置vue.config.js
config.module
.rule('images')
.test(/\.(png|jpe?g|JPG|gif|svg|jpg)(\?.*)?$/)//根据需要添加
.use('url-webpack-loader')
config.module
.rule('images')
.test(/\.(png|jpe?g|JPG|gif|svg|jpg)(\?.*)?$/)//根据需要添加
.use('url-webpack-loader')