Support webpack config resolution alias
See original GitHub issueIts not uncommon to see module resolution aliases in webpack land:
// webpack.config.js
resolve: {
alias: {
components: path.join(__dirname, 'src', 'components'),
config: path.join(__dirname, 'src', 'config'),
data: path.join(__dirname, 'src', 'data'),
lib: path.join(__dirname, 'src', 'lib'),
rdx: path.join(__dirname, 'src', 'rdx')
}
}
Is it possible to set up a rule to that can enable module resolution uisng webpack style aliases?
I love this program. Lots of fun.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Resolve | webpack
An object which maps extension to extension aliases. webpack.config.js module.exports = { //... resolve: ...
Read more >How to Create a Path Alias in Webpack - Bitovi
Establish the Module Aliases · Open your Webpack.config.js file. · If it's not already there, add a resolve property to the configuration object ......
Read more >Webpack doesn't resolve properly my alias - Stack Overflow
I am trying to have a namespace for my app to work as a module, and import my components using this namespace and...
Read more >Module aliasing in Webpack. Problem, Solution, Complications
Webpack allows you to create aliases to import or require certain modules through the resolve.alias property in your config without any additional plugins....
Read more >Simplify your imports with webpack aliases
By adding some options to webpack's resolve configuration object, we can define aliases for specific directories. For example:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should have received an invite @sverweij
Unfortunately I haven’t had time to play with this yet 😫 also no longer working on the codebase that was doing this. If you think its good, I would take your word for it.