webpack-contrib/install-webpack-plugin

Webpack 4 support

insin opened this issue ยท 8 comments

insin commented

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?

insin commented

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