leecade / koa-webpack-middleware

webpack dev&hot middleware for koa2
214 stars 27 forks source link

Update adaptation methods of middleware' new version in webpack4 #67

Closed Styx11 closed 4 years ago

Styx11 commented 4 years ago

Hi, recently, I have used devmiddeware andhotmiddleware in webback4 and koa2 environment. Your library has greatly inspired me, but I have encountered version problems:

  1. The middleware version you are using is too old to support webpack4
  2. The adaptation method designed in the library is no longer applicable to the existing version of middlewares

So in this PR, I upgraded the middleware versions and updated the adaptation methods

I've tested it on my project and they work well🙂

pins:

"koa": "^2.11.0",
"webpack": "^4.42.0",
"webpack-dev-middleware": "^3.7.2",
"webpack-hot-middleware": "^2.25.0",
Styx11 commented 4 years ago

The check is about ''Google Cloud Platform'', you can ignore it