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

Images and fonts are missing from node_modules css files that use url('...') #22

Open
CarterQC opened this issue Feb 24, 2022 · 1 comment

Comments

@CarterQC
Copy link

A couple of packages that I use have css with entries like background-image: url('./font/somefont.woff2'); in them.

When I use dart_sass, these relative paths are still there and those images/fonts return 404s. Is there something I can configure to either rewrite them as a dataurl (like esbuild would), or to copy those into the output folder?

@mcrumm
Copy link
Member

mcrumm commented Aug 26, 2022

Hi @CarterQC, sorry for the delayed response. This package is a thin wrapper around the Dart Sass Command-Line Interface, so if it can be done thru the CLI then it is possible here, otherwise there is not much that we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants