forked from import-js/eslint-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding handling for multiple Webpack configs (import-js#335)
* Added handling for multiple Webpack configs If the Webpack config is an array, then use the first config that includes a resolve section. * Adding unit test for multiple webpack configs * Fixed unit test for multiple webpack configs * Remove only call from unit test * Added 'config-index' setting for resolving multiple configs * Added documentation and release notes for multiple config support * Fixed documentation for config-index; Fixed JSON in YAML examples
- Loading branch information
1 parent
0a918b1
commit c15901b
Showing
5 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var path = require('path') | ||
|
||
module.exports = [{ | ||
name: 'one', | ||
}, { | ||
name: 'two', | ||
resolve: { | ||
root: path.join(__dirname, 'src'), | ||
fallback: path.join(__dirname, 'fallback'), | ||
}, | ||
}, { | ||
name: 'three', | ||
resolve: { | ||
alias: { | ||
'foo': path.join(__dirname, 'some', 'goofy', 'path', 'foo.js'), | ||
}, | ||
modulesDirectories: ['node_modules', 'bower_components'], | ||
root: path.join(__dirname, 'src'), | ||
}, | ||
}] |