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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng build my-lib --watch does not watch assets #17778
Comments
Transferring to the CLI project. |
Thanks for reporting this, but this is caused by an upstream package and not by the Angular CLI. |
Thanks @alan-agius4 @petebacondarwin @clydin |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
Not sure, @angular/compiler
Is this a regression?
No, it's a bug in recent feature
Description
After generate a library project, adding
in ng-package.json , the assets is not copied again to dist folder when --watch flag is on.
Problably, the Copying assets step needs to be reevaluated.
馃敩 Minimal Reproduction
1- ng new test-project
2 - cd test-project
3 - ng g library one-lib
4 - edit ng-package.json, adding the assets property, declared before in the issue.
5 - create a folder in projects/one-lib/assets
6 - create a file inside that folder, file.json, and write a content in it
7 - ng build one-lib --watch
8 - in dist folder, should be created the assets folder and the file.json
9 - change the content in file.json inside project folder. With watch flag, the file should be recopied to dist folder.
馃敟 Exception or Error
The file is not updated with watch flag.
In our private project, the automatic copy of file is essential
馃實 Your Environment
Angular Version:
S.O Ubuntu 19.04
The text was updated successfully, but these errors were encountered: