FormidableLabs / webpack-disk-plugin

Webpack disk plugin
MIT License
14 stars 1 forks source link

Webpack4 support #3

Open THernandez03 opened 6 years ago

THernandez03 commented 6 years ago

Hi, as the title says, add support for Webpack4.

I tried to make the PR but i don't get very well how new plugins system works and how to debug it efficiently.

Some changes i made was use the same afterEmit function but separate the versions of Webpack using an if.

if(compiler.hooks){
  compiler.hooks.afterEmit.tapAsync("diskPlugin", afterEmit);
}else{
  compiler.plugin("after-emit", afterEmit);
}
didi0613 commented 6 years ago

Can we know if there is any plans for this in the near future? @ryan-roemer Thank you