You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -284,13 +284,16 @@ module.exports = {
284
284
Type: `Boolean`
285
285
Default: `false`
286
286
287
-
**Only works with `source-map`, `inline-source-map`, `hidden-source-map` and `nosources-source-map` values for the [`devtool`](https://webpack.js.org/configuration/devtool/) option.**
287
+
**Works only with `source-map`, `inline-source-map`, `hidden-source-map` and `nosources-source-map` values for the [`devtool`](https://webpack.js.org/configuration/devtool/) option.**
288
288
289
289
Why?
290
290
291
291
-`eval` wraps modules in `eval("string")` and the minimizer does not handle strings.
292
292
-`cheap` has not column information and minimizer generate only a single line, which leave only a single mapping.
293
293
294
+
The plugin respect the [`devtool`](https://webpack.js.org/configuration/devtool/).
295
+
Using supported `devtool` values enable source map generation.
296
+
294
297
Use source maps to map error message locations to modules (this slows down the compilation).
295
298
If you use your own `minify` function please read the `minify` section for handling source maps correctly.
0 commit comments