-
-
Notifications
You must be signed in to change notification settings - Fork 756
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 background-image renders fine in Safari, but not Firefox or Chrome #120
Comments
This is a known webpack problem. I have a temporary workaround, but you have to rebuild anytime you change the publicURL (or port). Additionally, I can only make it work with relative paths, not absolute paths in RSB. Here is the workaround:
Here are a few discussions on the issue: sourceMap css does not function for background-image (maybe stylus-loader issue) Generated image urls must be absolute for style!css?sourceMap to work? |
I have the exact same issue, setting the |
Hi, I have the same issue, and even strange is using your fork and change in webpack.config.js, the background is still not appear this is what I changed
(PC-Chrome and firefox) Thanks |
A background-image in Layout.css will not render correctly in Firefox or Chrome, but does render correctly in Safari.
I have created a fork of master that adds only a background-image to Layout that demonstrates the problem.
Fork189-n8sabes/react-static-boilerplate
See:
/components/Layout/Layout.js
/components/Layout/Layout.css
/public/assets/
.It is unclear as to the cause and may very well be an oversight on my part.
Inline style works fine, but this is impractical as a global project solution.
The text was updated successfully, but these errors were encountered: