I am looking for a way to streamline this code by using a loop to dynamically import all .js
files from a specified directory (in this case, the 'plugins' directory).
const plugins = ['AlertPlugin', 'AxiosPlugin', 'ConfigPlugin','TranslationPlugin'];
plugins.forEach(plugin => {
const Plugin = require(`@/plugins/${plugin}`).default;
Vue.use(Plugin);
});