CargoSense / dart_sass

Install and run Dart Sass using Elixir.
https://hex.pm/packages/dart_sass
MIT License
102 stars 23 forks source link

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

Open CarterQC opened 2 years ago

CarterQC commented 2 years ago

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 commented 2 years ago

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.