webpack-contrib/webpack-hot-middleware

when updating the example everything will break please update

dcd-api opened this issue · 4 comments

Hello, I'm trying to understand how to get webpack to work with express, but when I tried the example in this git, it's very outdated and won't work anymore.
I get this message :

'WEBPACK_CONFIG' is not recognized as an internal or external command,

and when I try to update it all and using the latest webpack and latest webpack-dev-server
updated package.json: https://gist.github.com/dcd-api/90d0b9b872a7a6ed7aacbf7d938cb025
And I changed the npm run command to :

    "start": "webpack --config ./webpack.config.multientry.js node server.js"

I get this error:

[00:41:31.917] [ERROR] [webpack-cli] Failed to load 'C:\webpack-hot-middleware-master\example\webpack.config.multientry.js' config
[00:41:31.922] [ERROR] [webpack-cli] TypeError: webpack.optimize.OccurrenceOrderPlugin is not a constructor
    at Object.<anonymous> (C:\webpack-hot-middleware-master\example\webpack.config.multientry.js:21:5)

I want to see a good example. I searched on GitHub but found nothing good I hope someone can build the best model ever because it's beneficial to understand it!
Thanks so much for all the effort in this project.

i hope someone can update it its very outdated and it will be very helpfull to learn from

Is this repo death ?

Problem not related to webpack-hot-middleware, webpack.optimize.OccurrenceOrderPlugin was removed for webpack v5