Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow resolving modules from src directory #283

Open
jolyndenning opened this issue Apr 9, 2021 · 1 comment
Open

Allow resolving modules from src directory #283

jolyndenning opened this issue Apr 9, 2021 · 1 comment

Comments

@jolyndenning
Copy link
Member

jolyndenning commented Apr 9, 2021

For example:

import 'src/thing.js'

{
 resolve: {
   alias: {
     src: path.resolve(process.cwd(), 'src')
  }
}
@eckdanny
Copy link
Contributor

IMO: maybe best to just add to the docs site Custom Webpack Configuration section.

Benefits of not baking it in:

  1. no surprises for peeps who don't like alias-ing
  2. opportunity for peeps who go crazy with alias'ing to create as many as they want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants