未验证 提交 ada41a8b 编写于 作者: I illuminist 提交者: GitHub

Update next-bundle-analyzer readme (#14976)

https://github.com/vercel/next.js/issues/14969

It didn't specify on how to include the config with function config. This PR clarify the way to use the config with function. 
上级 33ebda1b
......@@ -25,6 +25,14 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
module.exports = withBundleAnalyzer({})
```
Or configuration as a function:
```js
module.exports = (phase, defaultConfig) => {
return withBundleAnalyzer(defaultConfig)
}
```
Then you can run the command below:
```bash
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册