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

How to resolve Sass url()? #2272

Closed
grumbaut opened this issue Nov 9, 2018 · 1 comment
Closed

How to resolve Sass url()? #2272

grumbaut opened this issue Nov 9, 2018 · 1 comment
Labels
CSS Preprocessing All the PostCSS, Less, SASS, etc issues ❔ Question Stale Inactive issues

Comments

@grumbaut
Copy link

grumbaut commented Nov 9, 2018

❔ Question

I'm using parcel-bundler in a Node package to bundle a group of SCSS files. Using version 1.9.7, I had no issues resolving url() calls. Upon upgrading, however, I receive an error: Error: ENOENT: no such file or directory.

I noticed that in 1.10.0, URL resolving was moved to postcss.

How can I resolve calls to url() using the current versions of parcel-bundler?

🔦 Context

I was trying to bundle a group of SCSS files for output to a separate repository. The error comes in when I @import a stylesheet from a different package. This wasn't an issue before.

💻 Code Sample

background: url(#{$pswp__assets-path}default-skin.png) 0 0 no-repeat;

$pswp__assets-path is set currently to an empty string, so this should resolve to url(default-skin.png).

🌍 Your Environment

Software Version(s)
Parcel
Node
npm/Yarn
Operating System
@mischnic mischnic added the CSS Preprocessing All the PostCSS, Less, SASS, etc issues label Mar 18, 2019
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Jan 17, 2020
@github-actions github-actions bot closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Preprocessing All the PostCSS, Less, SASS, etc issues ❔ Question Stale Inactive issues
Projects
None yet
Development

No branches or pull requests

4 participants
@DeMoorJasper @mischnic @grumbaut and others