现在的话webpack配置resolve.alias和resolve.root都没有用,会去下载远程包。 后面的版本修复了这个问题。 请看这个issues: https://github.com/ericclemmons/npm-install-webpack-plugin/issues/31