Skip to content

Vite is not reloading on asset only changes #26141

Closed

Description

@iKrishnaSahu

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

esbuild is not detecting style changes when importing style file inside index.html

This issue does not happen in non esbuild builder

Minimal Reproduction

ng17rc1.zip

  • unzip above zip file and run npm install
  • check UI
  • now go to src\assets\ruf-default.css and update color property of header element to some other color
  • check if styles are reflecting on UI

Exception or Error

No response

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 17.0.0-rc.1
Node: 18.18.2
Package Manager: npm 8.19.3
OS: win32 x64

Angular: 17.0.0-rc.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.1
@angular-devkit/build-angular   17.0.0-rc.1
@angular-devkit/core            17.0.0-rc.1
@angular-devkit/schematics      17.0.0-rc.1
@schematics/angular             17.0.0-rc.1
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else relevant?

No response

Activity

  1. alan-agius4 commented on Oct 26, 2023

    @alan-agius4
    Collaborator

    This is caused by at the moment, the page is not reloaded when only an asset change.

  2. changed the title [-]esbuild is not detecting style changes[/-] [+]esbuild is not reloading on asset only changes[/+] on Oct 31, 2023
  3. bobbyg603 commented on Nov 10, 2023

    @bobbyg603
  4. bobbyg603 commented on Nov 10, 2023

    @bobbyg603
  5. blahblehblah commented on May 1, 2024

    @blahblehblah

    still an issue on the 17.2.3

  6. A-W-Smith commented on Nov 29, 2024

    @A-W-Smith

    Still occuring as of 17.3.11

  7. 1 remaining item

  8. changed the title [-]esbuild is not reloading on asset only changes[/-] [+]Vite is not reloading on asset only changes[/+] on Jan 7, 2025
  9. added 8 commits that reference this issue on Jan 8, 2025
    5b4a5ef
    6239f22
    ef33914
    b020af1
    3cd0ae9
    65894c4
    17e2a53
    925e22b
  10. added 2 commits that reference this issue on Jan 10, 2025
    955acef
    87cfefb
  11. angular-automatic-lock-bot commented on Feb 10, 2025

    @angular-automatic-lock-bot

    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.

  12. locked and limited conversation to collaborators on Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions