Skip to content
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

feat(@angular/build): enable component stylesheet hot replacement by default #28646

Merged
merged 2 commits into from
Oct 16, 2024

Commits on Oct 16, 2024

  1. feat(@angular/build): enable component stylesheet hot replacement by …

    …default
    
    When using the `application` builder (default for new projects) with the
    development server, component style only changes will now automatically
    replace the styles within the running application without a full reload
    of the page. No application code changes are necessary and both file-based
    (`styleUrl`/`styleUrls`) and inline (`styles`) component styles are supported.
    Within a component template, `<style>` elements and `<link rel="stylesheet">`
    elements with relative `href` attributes are also supported.
    
    If any issues are encountered or it is preferred to not hot replace component
    styles, the `NG_HMR_CSTYLES=0` environment variable can be used to disable
    the feature. Setting the `liveReload` option to false will also disable all
    updates.
    clydin committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    09e915f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d166248 View commit details
    Browse the repository at this point in the history