preboot/angularjs-webpack

css in the picture packing problem

shaodahong opened this issue · 1 comments

node -v
v7.10.0

npm -v
4.2.0

webpack -v
2.5.0

I set up a div tag in app.html, give it a class box, and then I set this box background: url ('../ public / img / logo.png') no-repeat;

then i run npm run build, Find the image packed in the root directory

Have you tried it?
image

I hope that the picture resources can be unified in the img directory or a unified directory, because when I css too much in the picture when this is not well managed!

Well, you can use url-loader for img. see config outputPath