A little obscure and I think I might have been wrong. http://webpack.github.io/docs/configuration.html#resolve-packagemains I'm thinking about index files which are not configurable it seems.