{test: /\.(gif|png|jpg|woff|svg|eot|ttf)\??.*$/, loader: 'url-loader?limit=100&name=resource/[name].[ext]'},
index.css 里
body {
background: url("../../image/abc.png")
}
打包后的 css
body {
background: url(resource/abc.png)
}
问题是resource时在dist下啊 index.css在 dist/css下,这样的话打包出来的应该是 background: url(../resource/abc.png) 才对把,