Open relm opened 4 years ago
Is there any update with this issue, I am having exactly the same problem
I have found out, that if you use CSS Nano inside POSTCss, this will cause the error we're describing here. Instead, if you want to use cssNano, you should do it in its own webpack plugin. This is where I read it.
Yes this is an issue here too. Source maps are just plain and simple wrong.
Running version: ^0.28.0
Using v0.30.2
I recently noticed that, in Chrome's inspector tool, I am not seeing the correct file / line number reference for my SCSS in the Styles pane.
For example, if I define the following in my
app.scss
file:When inspecting the
.container
element, it does not show the line number within theapp.scss
file. Instead, I get the line number from_print.scss
- one of the Bootstrap imports. Clicking it jumps to the first occurrence of.container
in the_print.scss
file which does not contain my code.Why is this happening? Same behavior in other browsers as well. For class names that aren't already declared in Bootstrap, everything works as expected.
webpack.config.js:
app.js:
import '../styles/app.scss';