-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[resolver-webpack] Compat with multiple configs #181
Comments
Makes sense. Will look into it. FWIW, if the groups of files covered by each config are fairly disjoint--though I suspect they aren't--you could use nested |
Scratch that suggestion. Just realized you meant multiple configs in a single file. |
Specify list of extensions in |
Actually, might be simpler if you create a You may then specify that base config as the webpack config for linting. Otherwise, it may be difficult to determine which of the multiple configs is applicable to the file being linted. Happy to take a PR if someone has a thought on how to do this without making potentially faulty assumptions. |
Here's a PR: #335 It picks the first config that contains a resolve section, which seems appropriate. |
@benmosher but if I have aliases in both configs what I should do? Is it possible to merge resolve sections from all configs? |
webpack.config.js
can be an array of webpack config objects like so:Currently, I have to append this to my config file:
... which shouldn't be necessary. Please add support for multiple webpack configs.
The text was updated successfully, but these errors were encountered: