webpack-contrib / install-webpack-plugin

Speed up development by automatically installing & saving dependencies with Webpack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not work at webpack@2.2.0-rc0

wssgcg1213 opened this issue · comments

compiler.resolvers.normal.plugin("module", this.resolveModule.bind(this))

should be

 compiler.plugin('compilation', (compilation) => {
  compilation.resolvers.normal.plugin("module", this.resolveModule.bind(this))
})

this works for me now.

I don't know whether the API will change again when the the official version webpack@2 is released.

Thanks so much for troubleshooting this! I'm on vacation now, but will merge this when I get back.

Awesome work @wssgcg1213 :) :) :)