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

Webpack 4 support

insin opened this issue · comments

Error message when used with Webpack 4 beta 0:

path/to/npm-install-webpack-plugin/src/plugin.js:51
    compiler.resolvers.loader.plugin("module", this.resolveLoader.bind(this));
                              ^

TypeError: compiler.resolvers.loader.plugin is not a function

My workaround is to temporarily disable the NpmInstallPlugin

new NpmInstallPlugin({
  save: true
}),

Will this issue be fixed before Webpack 4 becomes stable?

Does this Webpack 4 change mean the end of the plugin's current approach?

Compiler

While applying plugins Compiler.options is no longer accessible. Plugins should not access options. They should only depend on options passed to the plugin via constructor.

Is there another way to get a hold of the Webpack config being used after all the internal defaulting etc. has happened?

please make this plugin works with web pack 4 also,
and also need a clear description that how this plugin works only after npm start or if I am code pulled from git and package.json has the new package added, during this webpack dev server is running will this plugin installs new package dependency or not.....
Please comment here 👍 ....

RIP this plugin

new NpmInstallPlugin({
save: true
}),

This code doesn't work for my webpack 4

Still have this issue

Still have this issue