webpack-hot-middleware
webpack-hot-middleware copied to clipboard
README.md has a Spelling mistakes
Documentation Is:
- [ ] Missing
- [√] Needed
- [ ] Confusing
- [ ] Not Sure?
Please Explain in Detail...
Textual location: Next, eable hot reloading in your webpack config:
- 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:
- 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".
That plugin is only needed for webpack v1. The plugin itself had a spelling error in its name.