Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Commit a6d1386

Browse files
committed
docs: add info about nextjs installation
1 parent 81f3758 commit a6d1386

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,21 @@ result in a small size increase to your production bundles.
2222

2323
1. Install via your prefered package manager:
2424

25-
```
25+
```bash
2626
npm install @mockingjay-io/webpack-react-component-name --save-dev
2727
```
2828

2929
2. Import and add the plugin to your Webpack configuration:
3030

31+
```js
32+
plugins: [
33+
new WebpackReactComponentNamePlugin({
34+
parseDependencies: true,
35+
})
36+
],
3137
```
32-
plugins: [
33-
new WebpackReactComponentNamePlugin()
34-
],
35-
```
38+
39+
Next.js users have to add this within `next.config.js`/`next.config.mjs`/`next.config.ts`. Examples available [here](https://github.com/mockingjay-io/webpack-react-component-name/tree/main/examples).
3640

3741
## Options
3842

0 commit comments

Comments
 (0)