-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
'problems with url()' no longer a problem? #144
Comments
I did just skim through your source code and it looks good! 👍 You did even use I was just wondering if this behavior could/should be part of the css-loader when source maps are present. In this case we could avoid parsing the CSS twice. |
Will get going on a PR. Regarding consolidation with the css loader - I think you are correct in your existing __ As you point out, this is a deficit from Sass not managing the In particular it makes it difficult to cherry-pick files from different libraries. Given only the library file, we have no way of reliably detecting the intended output directory and so cannot resolve relative references in the file. Frameworks such as bootstrap-sass are forced to compose Given that we are 'fixing' this behaviour, my gut tells me it would be more correct to encapsulate this in the sass loader rather than address it in the css loader, regardless of where the efficiencies lie. That said the convention is against being monolithic. And for those comfortable with the standard sass behaviour you would certainly want to save them the parsing and synchronous file-system operations involved in the 'fix'. But I would say first see whether this solution proves to be successful and is the dominant use case for sass loader. |
@bholloway You rock so freaking hard!!!! |
Awesome loader.
In your
readme.md
you note the problem we have all encountered with relativeurl()
statements in SASS.I have written a resolve-url-loader which I hope addresses the issue and I would value your opinion.
It is actually a port of some code I have been using in Browserify for quite a while on a number of large projects. I am less familiar with Webpack and defer to your greater experience.
The text was updated successfully, but these errors were encountered: