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 runnpm run build, Find the image packed in the root directory
Have you tried it?
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!
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 directoryHave you tried it?
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!