Skip to content

Commit

Permalink
docs: Fix event usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Oct 15, 2018
1 parent 156ba53 commit bb17284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -495,7 +495,8 @@ Example implementation: [webpack-subresource-integrity](https://www.npmjs.com/pa
```js
// If your plugin is direct dependent to the html webpack plugin:
const HtmlWebpackPlugin = require('html-webpack-plugin');
// If your plugins is using html-webpack-plugin you can use https://github.com/tallesl/node-safe-require
// If your plugin is using html-webpack-plugin as an optional dependency
// you can use https://github.com/tallesl/node-safe-require instead:
const HtmlWebpackPlugin = require('safe-require')('html-webpack-plugin');

class MyPlugin {
Expand Down

0 comments on commit bb17284

Please sign in to comment.