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
$ npm i
$ rm -rf dist/*&& ./node_modules/.bin/webpack
Then open http://example.com/dist in Chrome. Then Developer Tools > Elements tab. Then click on div element, and then on the link for div { width: 100px; ... } block, and you'll find yourself on the wrong line (line 2 instead of line 4).
If you change outputStyle to anything other then compressed, it'll work out.
UPD On a side note, when you've got nested rules, e.g.:
divwidth: 10pxdivwidth: 20px
Both div { width: 10px; } and div div { width: 20px; } "lead" to line 1. Regardless of output style. I'd expect inner div to "lead" to line 3. Should I report it as a separate issue?
The text was updated successfully, but these errors were encountered:
x-yuri
changed the title
Source map is wrong when outputStyle is 'compressed'
Source map is incorrect when outputStyle is 'compressed'
Nov 21, 2016
I hope it will do if I provide you with weback setup to reproduce the issue.
package.json
:webpack.config.js
:template.ejs
:1.js
:1.sass
:Then open
http://example.com/dist
in Chrome. ThenDeveloper Tools
>Elements tab
. Then click ondiv
element, and then on the link fordiv { width: 100px; ... }
block, and you'll find yourself on the wrong line (line 2 instead of line 4).If you change
outputStyle
to anything other thencompressed
, it'll work out.version info:
UPD On a side note, when you've got nested rules, e.g.:
Both
div { width: 10px; }
anddiv div { width: 20px; }
"lead" to line 1. Regardless of output style. I'd expect innerdiv
to "lead" to line 3. Should I report it as a separate issue?The text was updated successfully, but these errors were encountered: