Skip to content

Commit 3f3c0d7

Browse files
authored
Fix wrong devtool example (#1362) (#1363)
1 parent e7b1a33 commit 3f3c0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ First, for `ts-loader` to produce **sourcemaps**, you will need to set the [tsco
187187
Second, you need to set the `devtool` option in your `webpack.config.js` to support the type of sourcemaps you want. To make your choice have a read of the [`devtool` webpack docs](https://webpack.js.org/configuration/devtool/). You may be somewhat daunted by the choice available. You may also want to vary the sourcemap strategy depending on your build environment. Here are some example strategies for different environments:
188188

189189
* `devtool: 'inline-source-map'` - Solid sourcemap support; the best "all-rounder". Works well with karma-webpack (not all strategies do)
190-
* `devtool: 'cheap-module-eval-source-map'` - Best support for sourcemaps whilst debugging.
190+
* `devtool: 'eval-cheap-module-source-map'` - Best support for sourcemaps whilst debugging.
191191
* `devtool: 'source-map'` - Approach that plays well with UglifyJsPlugin; typically you might use this in Production
192192

193193
### Code Splitting and Loading Other Resources

0 commit comments

Comments
 (0)