自动导入文件夹下的文件require.context

https://webpack.docschina.org/guides/dependency-management/#requirecontext

const first = require.context('@/assets/image/contest/organization-logo-first', true, /\.png$/)
const logo1 = first.keys().map((key) => {
  return first(key)
})

你可能感兴趣的:(自动导入文件夹下的文件require.context)