No loader is configured for ".png"

✘ [ERROR] No loader is configured for ".png" files: static/pr.png

    index.js:1:15:
      1 │ import pr from "./static/pr.png"
        ╵                ~~~~~~~~~~~~~~~~~


✘ [ERROR] Build failed with 1 error:

  index.js:1:15: ERROR: No loader is configured for ".png" files: static/pr.png

How and where do I specify a loader for .png files?
Was this page helpful?