-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Please include images in this project #442
Comments
Thanks for letting us know about this issue @zhaojinxiang! We'll update this in our next release. |
One way that we could handle this is to have one or more variables where the URLs of certain images live, so that non-github — or even just uses outside of github.com, such as in the style guide — could change them as needed. |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
@yaili Can we reopen this issue? |
I'm running into a similar issue when I import S/CSS files from @primer/css and the webpack config is using css-loader>=4. Tracked it down to this: https://stackoverflow.com/a/63224177. It would be good if it's resolved in @primer/css itself, but until its not, webpack can be configured this way to ignore these patterns: resolve: {
alias: {
'/images/spinners': false,
'/images/modules': false
}
} |
+1 on this, surprised this has been open since 2018! |
There have been 8 major releases since this and the issue is still prevalent 😬 |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
👀 |
Is there any updates on this? |
I am also having the same issue here |
GOOD DAY/EVENING |
I'm trying to integrate the sass version of This might be useful information, esp. for those using What's the update on the issue? |
@heynan0 Can you give us some more context to your use-case? We generally advise teams towards using PVC components instead of CSS clases to compose experiences. Would that help address your use case? |
@howdyray, it's not about using class names. We already use Primer View Components. The problem is integrating the Right now our team's application has to hard-code a CDN dist css version as a
The above does not work properly because of lines such as: css/src/forms/form-validation.scss Line 14 in 55f35e1
The above throws an error in the console. The path string passed to the One's application might not have that exact path available. In a default Rails application, the pipeline is served from Another way would involve having to rewrite the path string prefixes to As recommended in https://github.com/webpack-contrib/sass-loader/tree/75dcfde159fe5508861f36ca577f71630c0d623e#problems-with-url, the library could use a variable:
|
@heynan0 Thanks for the details. 🙇 We chatted about this today in our weekly meeting. Using a variable might be an option, but we think it's ok to just move these
I can make a PR with the removal. |
form-validation.scss include too many background-image with absolute path which works well in github
For example:
background-image: url("/images/spinners/octocat-spinner-16px.gif");
background: url("/images/spinners/octocat-spinner-32-EAF2F5.gif") 0 0 no-repeat;
@broccolini @shawnbot
if I use web application bundler like Parcel.js, it will crash for no file exists in
/images/spinners/
dir in my computer.The text was updated successfully, but these errors were encountered: