npm

npm i -D url-loader

webpack.config.js

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.png$/,
        use: 'url-loader',
      },
    ],
  },
}

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-05-06
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案