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

Background image from hero section won't be added to dist #17

Closed
createNull opened this issue Jan 16, 2020 · 2 comments
Closed

Background image from hero section won't be added to dist #17

createNull opened this issue Jan 16, 2020 · 2 comments

Comments

@createNull
Copy link

Hello Jacob,

There is the posibility of adding a background image with url() in css for the hero section, but you forgot to add the rule in webpack common.

@createNull
Copy link
Author

Ok, it worked in the end.
So, the trick is to use a relative path for the url() in your css file:

Replace background: url("/src/assets/[your-image].png"); with background: url("../assets/[your-image].png");

@aokdirova
Copy link

Thank you so much! I was going crazy whole day with this problem. Saved me

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