1.在config(文件夹)—>index.js中,添加(如图的红色标记区域)
2.在build(文件夹)—>utils.js添加
3.配置完成后,在工程里静态文件存储又分为两种
(1)img css 正常引入:
img标签引入图片 <img’ src="…/…/static/img/moon.png" class=“test-img” />
css图片使用 background: url(’…/…/static/img/moon.png’) no-repeat top left ;