Closed Just-focus closed 4 years ago
Module not found: Error: Can't resolve 'img/1.png' in '/Users/chenxiaogang/workspace/hupu/games_frontend/offline_react/src/container/bbs/admire/admire_1'
import Img from "./img/1.png"; 这样呢
但是我是打算在背景里面写的。。写绝对路劲就可以,但是写绝对路劲就不会编译了成base64了
背景图片也这么写就可以啊: background-image: url(./img/1.png); 注意webpack.production.config.js中的PUBLIC_PATH设置
嗯嗯。。可以了。。谢谢
Module not found: Error: Can't resolve 'img/1.png' in '/Users/chenxiaogang/workspace/hupu/games_frontend/offline_react/src/container/bbs/admire/admire_1'