Webpack alias batch relative paths configuration plugin
yarn add -D alias-webpack-plugin
create alias path list to a alias.json
/ alias.config.js
file or create a custom file from execution path
import aliasWebpackPlugin from 'alias-webpack-plugin'
const webpackConfig = {
resolve: {
alias: {
...aliasWebpackPlugin(),
},
}
}