Skip to content

esbuild ng serve not watching html and css files outside project root #25395

Closed
@atsjo

Description

@atsjo

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

This is a follow-up to #25011

16.1 fixed watching ts files, but it still doesn't pick up changes in html and css files in library components. It picks up the change if first changing html, then a dummy write to the component ts file, but changes to the html/css doesn't trigger re-generation itself.

Minimal Reproduction

#25011

Exception or Error

No response

Your Environment

Node   : 18.16.0
   OS     : win32 x64
   pnpm   : 8.6.2
   Hasher : Native
   
   nx                 : 16.3.2
   @nx/js             : 16.3.2
   @nx/jest           : 16.3.2
   @nx/linter         : 16.3.2
   @nx/workspace      : 16.3.2
   @nx/angular        : 16.3.2
   @nx/cypress        : 16.3.2
   @nx/devkit         : 16.3.2
   @nx/esbuild        : 16.3.2
   @nx/eslint-plugin  : 16.3.2
   @nrwl/tao          : 16.3.2
   @nx/webpack        : 16.3.2
   typescript         : 5.1.3

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions