Skip to content

Commit

Permalink
docs: issue-83 (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Sep 5, 2019
1 parent 0537591 commit 080baff
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 23 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,16 @@ module.exports = {
Type: `Boolean`
Default: `false`

**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.**

Why?

- `eval` wraps modules in `eval("string")` and the minimizer does not handle strings.
- `cheap` has not column information and minimizer generate only a single line, which leave only a single mapping.

Use source maps to map error message locations to modules (this slows down the compilation).
If you use your own `minify` function please read the `minify` section for handling source maps correctly.

> ⚠️ **`cheap-source-map` options don't work with this plugin**.
**webpack.config.js**

```js
Expand Down
Loading

0 comments on commit 080baff

Please sign in to comment.