首先,您需要安装 file-loader : $ npm install file-loader --save-dev. 导入(或 require )捆绑包的某个文件中的目标文件:. file.js import img from '.
確定! 回上一頁