Skip to content

Commit afc9a5d

Browse files
neilkennedyskipjack
authored andcommitted
docs(plugins): add uglification warning to source-map-devtool-plugin (#1827)
Added a dependency section to mention that a source map will not be generated if the user is also using the `UglifyJsPlugin` and has not set the `sourceMap` property to `true`.
1 parent eec2854 commit afc9a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/plugins/source-map-dev-tool-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: SourceMapDevToolPlugin
33
contributors:
44
- johnnyreilly
55
- simon04
6+
- neilkennedy
67
related:
78
- title: Building Source Maps
89
url: https://survivejs.com/webpack/building/source-maps/#-sourcemapdevtoolplugin-and-evalsourcemapdevtoolplugin-
@@ -39,6 +40,7 @@ The `fileContext` option is useful when you want to store source maps in an uppe
3940

4041
T> Setting `module` and/or `columns` to `false` will yield less accurate source maps but will also improve compilation performance significantly.
4142

43+
W> Remember that when using the [`UglifyJSPlugin`](/plugins/uglify-js-plugin), you must utilize the `sourceMap` option.
4244

4345
## Examples
4446

0 commit comments

Comments
 (0)