gajus / write-file-webpack-plugin

Forces webpack-dev-server to write bundle files to the file system.
Other
527 stars 54 forks source link

Support `webpack@4` #50

Closed alexander-akait closed 6 years ago

alexander-akait commented 6 years ago

https://github.com/webpack/webpack/releases/tag/v4.0.0-alpha.0

alexander-akait commented 6 years ago

/cc @gajus

brillout commented 6 years ago

With webpack 4 I get

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

@gajus Do you maintain this plugin?

(Thanks for this awesome plugin btw.)

alexander-akait commented 6 years ago

@gajus Also if you don't have time to maintenance this, maybe we can migrate this to webpack-contrib?

radut commented 6 years ago

any news on WebPack v4 compatibility ?

alexander-akait commented 6 years ago

@radut you don't need this plugin anymore, https://github.com/webpack/webpack-dev-middleware#writetodisk

tech4him1 commented 6 years ago

@evilebottnawi Is there a way to use the writeToDisk option directly through webpack-dev-server, or does the middleware need to be used directly?

radut commented 6 years ago

I need a simple solution to add to WDS, select which file pattern to always write on disk.. not to reinvent the wheel with new middleware :-?

bebraw commented 6 years ago

@tech4him1 See webpack-serve. It's a light alternative to WDS and you can set the flag there. After doing that, you don't need this plugin anymore.

mrukas commented 6 years ago

This plugin works perfectly fine with webpack 4.5.0. I also get the DeprecationWarning, but the plugin still does what it's intended to do.

alexander-akait commented 6 years ago

@gajus can we add note in readmy about support webpack-dev-middleware feature to avoid questions

gajus commented 6 years ago

@gajus can we add note in readmy about support webpack-dev-middleware feature to avoid questions

PR welcome.

sikhote commented 6 years ago

@tech4him1 https://github.com/webpack/webpack-dev-server/issues/1357