webpack-hot-middleware icon indicating copy to clipboard operation
webpack-hot-middleware copied to clipboard

README.md has a Spelling mistakes

Open DoverDee opened this issue 6 years ago • 1 comments

Documentation Is:

  • [ ] Missing
  • [√] Needed
  • [ ] Confusing
  • [ ] Not Sure?

Please Explain in Detail...

Textual location: Next, eable hot reloading in your webpack config:

  1. Add the following plugins to the plugins array: plugins: [ // OccurenceOrderPlugin is needed for webpack 1.x only new webpack.optimize.OccurenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), // Use NoErrorsPlugin for webpack 1.x new webpack.NoEmitOnErrorsPlugin() ] Issue: Report TypeError: webpack.optimize.OccurenceOrderPlugin is not a constructor on console when I CLI npm run build.

Your Proposal for Changes

Next, eable hot reloading in your webpack config:
  1. Add the following plugins to the plugins array: plugins: [ // OccurenceOrderPlugin is needed for webpack 1.x only new webpack.optimize.OccurrenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), // Use NoErrorsPlugin for webpack 1.x new webpack.NoEmitOnErrorsPlugin() ] First field in plugins has changed."OccurenceOrderPlugin"->"OccurrenceOrderPlugin".

DoverDee avatar Jun 28 '18 03:06 DoverDee

That plugin is only needed for webpack v1. The plugin itself had a spelling error in its name.

glenjamin avatar Jun 28 '18 07:06 glenjamin