Skip to content

Commit b7380bb

Browse files
committed
add note for examples
1 parent 17bffed commit b7380bb

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,22 @@ snippets:
6363
- `createTextExtractor`
6464
- `getScssLoader`
6565

66-
## Example
66+
## Example
67+
Before use examples you should know what happen inside react-scripts webpack config.
68+
first see and read this files:
69+
70+
- `node_modules/react-scripts/config/webpack.config.dev.js`
71+
- `node_modules/react-scripts/config/webpack.config.prod.js`
72+
73+
also you can log `webpackConfig` value.
74+
75+
```js
76+
// webpack.monkey.js
77+
module.exports = function (webpackConfig, isDevelopment) {
78+
console.log(webpackConfig)
79+
};
80+
```
81+
6782
### Webpack Visualizer
6883
I love visualization so I add [webpack-visualizer-plugin][webpack-visualizer] to my project
6984
- install plugin:

0 commit comments

Comments
 (0)