levp / wrapper-webpack-plugin

A webpack plugin that wraps output files (chunks) with custom text or code.
91 stars 37 forks source link

DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead #4

Closed anhuiliujun closed 6 years ago

anhuiliujun commented 6 years ago

upgrade for webpack 4?

levp commented 6 years ago

Fixed, though unfortunately the fix now breaks backwards compatibility with older versions of webpack (anything before v4). Updated the README to reflect this as well.

WillsB3 commented 5 years ago

Hi @levp,

I'm also seeing this issue but it appears that 2.1.0 is not yet published to npm. Is that intentional?

Thanks Will

levp commented 5 years ago

Hi @WillsB3,

This issue was solved with 2.0.0, and I checked to see that 2.1.0 was published:

image

Not sure why you don't see it. Do you see it as something other than 2.1.0? What version does npm i wrapper-webpack-plugin install for you?

WillsB3 commented 5 years ago

Whoops! I think I may have gotten this package confused with the similarly named webpack-wrapper-plugin which appears to be what we are currently using.

Sorry for the confusion 🙏🏼