如果頁面上需要的圖片很多,這樣做太麻煩了,有沒有批量引入的辦法呢?
import?homeBg1?from?'./image/homeBg1.jpg';
import?homeBg2?from?'./image/homeBg2.jpg';
import?homeBg3?from?'./image/homeBg3.jpg';
請(qǐng)問怎么通過webpack的url-loader引入多張圖片呢?
yangmingyuan
2016-05-19 13:21:23