Skip to content

Commit

Permalink
feat(webpack): Adds entry file directory as module directory
Browse files Browse the repository at this point in the history
  • Loading branch information
a-s-o authored and d4rkr00t committed Nov 16, 2016
1 parent 6b711f3 commit 17bb324
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/webpack/config-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export default function webpackConfigBuilder(filename: string, flags: CLIFlags,
preLoaders: preloaders(),
loaders: loaders(flags, params)
},
resolve: {
modulesDirectories: [
path.dirname(path.resolve(process.cwd(), filename)),
'web_modules',
'node_modules'
]
},
eslint: {
configFile: path.join(__dirname, '../eslint-config.js'),
useEslintrc: false
Expand Down

0 comments on commit 17bb324

Please sign in to comment.