Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css in the picture packing problem #81

Open
shaodahong opened this issue May 24, 2017 · 1 comment
Open

css in the picture packing problem #81

shaodahong opened this issue May 24, 2017 · 1 comment

Comments

@shaodahong
Copy link

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!

@dslian
Copy link

dslian commented Sep 30, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants