Can npm retrieve pictures and save the picture data to js or json inside packages

  node.js, question

I want to use webpack to do an automated thing. I want to retrieve the pictures used in html, css and js into json or js for storage. do you have any good suggestions for js tuning variables, other tuning paths or data-url

Url-loader converts the picture into DataUrl. After you define the inside in the webpack configuration file, html/css/js inside can use it, but the usage is different. The usage of js/css inside can be seen in this article.“webpack Multi-page Application Architecture Series (6): Heard that webpack can package even pictures and fonts? 》