Uh oh!
There was an error while loading. Please reload this page.
Resolve relative paths for preprocessor styles - #5829
Conversation
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
unrevised6419
commented
Dec 17, 2018
Timer
commented
Dec 23, 2018
Sorry this fell through the cracks! I'm going to tag it for a milestone and hopefully get back to it soon. 😄 |
yazeedb
commented
Jan 16, 2019
I ran this change on an internal TypeScript app, and can confirm it resolves the issue. Might fork react-scripts to use it for now, but getting this merged would be sweeeeeeet. |
Silic0nS0ldier
commented
Feb 17, 2019
Hi everyone, any progress on this? Would be nice to clear out the dependency resources that have had to be moved into a project I'm working on. However the longer this goes unfixed, the less likely that is to happen. |
unrevised6419
commented
Feb 18, 2019
Rebased |
Revert eslint changes when react/create-react-app#6513 will be merged Revert to react-scripts when react/create-react-app#5829 will be merged
unrevised6419
commented
Mar 8, 2019
|
jackwilsdon
commented
Mar 20, 2019
This seems to have issues when using
@import'~example/scss/index.scss';
body {
background: url('../logo.svg');
}Output from |
@jackwilsdon this is not related to current issue. CRA has this restrictions from the beginning. If CRA would allow relative sources that fall outside |
jackwilsdon
commented
Mar 20, 2019
My apologies @iamandrewluca, I misunderstood this PR as being a potential fix for #5402, which is caused by |
unrevised6419
commented
Mar 20, 2019
@jackwilsdon no problem. I added a reference in #5402 (comment) |
DalerAkhmetov
commented
Jun 25, 2019
thank you for this pull request. It also be useful for working with Font Awesome 5 icon library. There is some code in SASS file located, for example, in '/app/src/styles.scss': |
mrmckeb
commented
Jun 25, 2019
Hi all, sorry this fell through the cracks. I'll follow this up for now on. @iamandrewluca - are you still interested in working on this? If so, let me know and I'll work with you to get it in. |
unrevised6419
commented
Jun 25, 2019
@mrmckeb yes, still interested. |
mrmckeb
left a comment
There was a problem hiding this comment.
OK, great. Let me take a look at this over the next few days.
I can see that you've included a demo which is great.
One small comment, otherwise it looks good.
Uh oh!
There was an error while loading. Please reload this page.
unrevised6419
commented
Jun 26, 2019
@mrmckeb done! |
mrmckeb
left a comment
There was a problem hiding this comment.
@ianschmitz or @iansu - any concerns on this one?
mrmckeb
commented
Aug 5, 2019
Still waiting for feedback on this one, but I'd like to get it out in 3.1. @ianschmitz was away, but hopefully he can take a look this week. |
ianschmitz
left a comment
There was a problem hiding this comment.
Just a quick change otherwise looks good.
Uh oh!
There was an error while loading. Please reload this page.
preprocessor will output sourceMap by default then check if sourceMaps are needed on resolve-url-loader Fixes#4653
preprocessor will output
sourceMapby defaultthen check if
sourceMapare needed on resolve-url-loaderissue demo: https://github.com/iamandrewluca/cra-scss-relative-problem
Fixes#4653