Skip to content

Exclude folders from automatic build watchers #2502

Closed
@seballot

Description

@seballot

Please provide us with the following information:
angular-cli beta.16, using webpack. project created with the CLI

Hi,

This is my project structure :

- server
   - server.js
- src
   - app
       - compoents & co
   - assets
   - index.html

I'm using server.js for handling upload request coming from one of my angular component.
The file is uploaded and I want to put it in the assets directory, so i can use it after in the app.

The problem is when I do such work (uploading a file in the assets folders) that make my angular-cli to re build the entire app (because it detect a change in my files), so the app is reloaded in the browser and i cannot use it.

Is there a way to exclude somes folders (for me the 'assets' folder) for the "watch build" task of the CLI? so the CLI don't build the app again when i'm putting a new file into it?

Thank you for the answer, and thank you very much for you work !

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