How to configure path aliases in webpack
Add to webpack config:
const path = require('path');
const config = {
resolve: {
alias: {
"@components": path.resolve(__dirname, "src/omponents");
}
}
}
References:
- https://www.bitovi.com/blog/how-to-create-a-path-alias-in-webpack