dart_sass icon indicating copy to clipboard operation
dart_sass copied to clipboard

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

Open CarterQC opened this issue 3 years ago • 1 comments

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?

CarterQC avatar Feb 24 '22 23:02 CarterQC

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.

mcrumm avatar Aug 26 '22 23:08 mcrumm