Skip to content

CSS sourcemap not working with @component({styles | styleUrls}) #8206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
JounQin opened this issue Oct 27, 2017 · 4 comments
Closed
1 of 2 tasks

CSS sourcemap not working with @component({styles | styleUrls}) #8206

JounQin opened this issue Oct 27, 2017 · 4 comments
Labels
needs: investigation Requires some digging to determine if action is needed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@JounQin
Copy link
Contributor

JounQin commented Oct 27, 2017

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

@angular/cli: 1.4.9
node: 8.8.1
os: darwin x64

Repro steps.

new project with angular-cli, add some code in app.component.css like div{color: red}, run ng serve -sm

Desired functionality.

I'd love to work with css sourcemap or even modify css/scss source with chrome dev tools directly.

@filipesilva filipesilva added needs: investigation Requires some digging to determine if action is needed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Oct 27, 2017
@filipesilva
Copy link
Contributor

Last time I checked, there was a problem in Angular itself regarding component sourcemaps (#3617). But I see that @asnowwolf's fix in Angular was merged (angular/angular#18641). If I'm reading this correctly, it was merged in 5.x but not in 4.x. There's also angular/angular#16088 that doesn't seem to be merged.

@hansl do you know what's the current status of sourcemap support for component css?

@asnowwolf
Copy link

It's works with 5.0 now. ng serve --extract-css (v1.5.0), but we'd better remove --extract-css too, see #8294.

@JounQin
Copy link
Contributor Author

JounQin commented Nov 14, 2017

Thx, that works in my own project without angular-cli.

@JounQin JounQin closed this as completed Nov 14, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: investigation Requires some digging to determine if action is needed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

4 participants