1

Anyone know the difference between the raw loader vs url loader in webpack? does the url loader do the same as raw, except falls back to file-loader at a certain file size?

SuperUberDuper
  • 9,242
  • 9
  • 39
  • 72

1 Answers1

4

url-loader

Loads the images you load via url(./some-asset.jpg) in your css files, converts them to base64 and places them instead of the url() statement.

raw-loader

Loads the file as string, it doesn't convert the images to base64, and is used more for text or css files.

Shai Reznik - HiRez.io
  • 8,748
  • 2
  • 33
  • 33