No way to generate component's CSS source maps #26123
Labels
area: core
Issues related to the framework runtime
core: stylesheets
feature: insufficient votes
Label to add when the not a sufficient number of votes or comments from unique authors
feature: votes required
Feature request which is currently still in the voting phase
feature
Issue that requests a new feature
P4
A relatively minor issue that is not relevant to core functions
Milestone
I'm submitting a...
Current behavior
In Chrome Developer Tools on the Elements tab I choose an element, and get the following styles:
Clicking on the
<style>...</style>
part doesn't show me the corresponding stylesheet file.Expected behavior
The corresponding file is opened on the Sources tab.
Minimal reproduction of the problem with instructions
cd
into corresponding directorynpm i
./node_modules/.bin/ng serve --open
Ctrl-Shift-C
h1
<style>...</style>
Why not angular-cli issue?
Let's say I have a SASS file for a component. The only way to pass source map to
StyleCompiler
is to inline it. So no option for SASS. That is achievable with PostCSS, but I see no effort on the part ofStyleCompiler
to try and parse it. On top of that, Angular changes the stylesheet, so even if I managed to embed the source map, it's no longer relevant. While it might be not much of an issue for development build (not sure), it is an issue for production one (minified stylesheets). Am I missing something?What is the motivation / use case for changing the behavior?
Better development experience.
Environment
The text was updated successfully, but these errors were encountered: