weex -vv1.3.11在webpack 里面添加{ test: /\.(jpg|jpeg|gif|png)$/,
use: [{
loader: 'url-loader',
options: {
limit: 10000,
name: 'img/[name].[sha512:hash:base64:7].[ext]'
},
}], exclude: config.excludeModuleReg},web環(huán)境能看到它變成了base64, 并且能使用運(yùn)行npm run andriod 或者 npm run ios報(bào)錯(cuò)WARNING in ./src/images/index/icon-close.png Module parse failed: Unexpected character '?' (1:0) You may need an appropriate loader to handle this file type.自行 npm install url-loader file-loader 也沒(méi)用
weex 想要把圖片變成base64 合并到j(luò)s里面 報(bào)錯(cuò)
蠱毒傳說(shuō)
2019-01-04 17:14:02