Skip to content

Method to refresh compiled global css from scss like livereload/browsersync #7757

@smlombardi

Description

@smlombardi

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x ] feature request

Versions.

@angular/cli: 1.4.2
node: 6.11.2
os: darwin x64
US-ST016LO-MLT:des

Desired functionality.

Our projects use a global scss file. We need to have source maps to debug sass as we work, so currently we run ng serve --sourcemap --extractCss -o --hmr -e=hmr. When editing a scss file, the css is compiled but the browser is not refreshed with the changes.

So, sometimes I will run the app without HMR just to force a reload on every save: ng serve --sourcemap --extractCss -o.

However, it would be preferable to have the CSS changes injected like the JS is with HMR. In older projects we used Gulp and Browsersync, which would inject css changes without reloading the browser.

I have searched and searched on this, and many issues request this for SCSS in components which, while nice, is more than we require; just getting this for global scss/css file would be huge.

I don't see this on any roadmaps anywhere. Is something like this being worked on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions