Skip to content

Commit 2ae1a53

Browse files
diegofariaskipjack
authored andcommitted
docs(guides): fix production devtool recommendation (#1567)
1 parent 1c341f7 commit 2ae1a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/guides/production.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ If you decide to try another, just make sure your new choice also drops dead cod
155155

156156
## Source Mapping
157157

158-
We encourage you to have source maps enabled in production, as they are useful for debugging as well as running benchmark tests. That said, you should choose one with a fairly quick build speed that's recommended for production use (see [`devtool`](/configuration/devtool)). For this guide, we'll use the `cheap-module-source-map` option in _production_ as opposed to the `inline-source-map` we used in _development_:
158+
We encourage you to have source maps enabled in production, as they are useful for debugging as well as running benchmark tests. That said, you should choose one with a fairly quick build speed that's recommended for production use (see [`devtool`](/configuration/devtool)). For this guide, we'll use the `source-map` option in _production_ as opposed to the `inline-source-map` we used in _development_:
159159

160160
__webpack.prod.js__
161161

@@ -165,7 +165,7 @@ __webpack.prod.js__
165165
const common = require('./webpack.common.js');
166166

167167
module.exports = merge(common, {
168-
+ devtool: 'cheap-module-source-map',
168+
+ devtool: 'source-map',
169169
plugins: [
170170
new UglifyJSPlugin()
171171
]

0 commit comments

Comments
 (0)