未验证 提交 fa02b197 编写于 作者: L Lee Robinson 提交者: GitHub

Fix typo in source maps documentation. (#22952)

上级 7f1800e1
......@@ -4,7 +4,7 @@ description: Enables browser source map generation during the production build.
# Source Maps
Source Maps are enabled by default during development. During production builds they are disabled as generation source maps can significantly increase build times and memory usage while being generated.
Source Maps are enabled by default during development. During production builds, they are disabled as generating source maps can significantly increase build times and memory usage while being generated.
Next.js provides a configuration flag you can use to enable browser source map generation during the production build:
......@@ -15,9 +15,9 @@ module.exports = {
}
```
When the `productionBrowserSourceMaps` option is enabled the source maps will be output in the same directory as the JavaScript files, Next.js will automatically serve these files when requested.
When the `productionBrowserSourceMaps` option is enabled, the source maps will be output in the same directory as the JavaScript files. Next.js will automatically serve these files when requested.
## Caveats
- Can increase `next build` time
- Adding source maps can increase `next build` time
- Increases memory usage during `next build`
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册