issue
weex加載本地圖片報錯.webpack
resolve
解決:web
npm i file-loader -D
rule
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: 'img/[name].[hash:7].[ext]'
}
}
複製代碼
npm i file-loader -D
require()
引入圖片<image :src="require('./images/banner.png')" class="logo" />