vue js readdir

const result = require.context(
  '@/<your dir!!>',
  true,
  /^.*\.<file type such jpg mp3>$/
)
console.log(result.keys())
Happy Hedgehog