file.js import img from './file.png';. 然后,在 webpack 配置中添加loader。例如: ... For example, to emit a file from your context directory into the output ...
確定! 回上一頁