Skip to content

fix(@angular/cli): ignore system files in assets #8549

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

Merged
merged 1 commit into from
Nov 20, 2017
Merged

fix(@angular/cli): ignore system files in assets #8549

merged 1 commit into from
Nov 20, 2017

Conversation

cyrilletuzi
Copy link
Contributor

Replaces angular/devkit#263

When copying the assets during build, the CLI must not include system files (e.g. .DS_Store and Thumbs.db).

It is very important for service worker to work : if presents, these files will be included in the service worker manifest as files to cache (according to this schematic). But such files may (and should) not be deployed to the server. Then on the client, files will be missing, then the service worker installation will fail and so all the offline feature won't work.

@hansl @filipesilva @Brocco @alxhub

Replaces angular/devkit#263

When copying the assets during build, the CLI must not include system files (e.g. `.DS_Store` and `Thumbs.db`).

It is very important for service worker to work : if presents, these files will be included in the service worker manifest as files to cache. But such files may (and should) not be deployed to the server. Then on the client, files will be missing, then the service worker installation will fail and so all the offline feature won't work.
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @alxhub can you take a look as well please?

@filipesilva filipesilva self-assigned this Nov 20, 2017
@alxhub
Copy link
Member

alxhub commented Nov 20, 2017

@filipesilva LGTM but this is legacy SW code anyway, and doesn't affect the 5.0.0 worker.

@alxhub alxhub self-requested a review November 20, 2017 18:16
@cyrilletuzi
Copy link
Contributor Author

@alxhub Why is this legacy ? Is the test already done in @angular/service-worker ? Couldn't find it.

@hansl hansl merged commit c27c7c9 into angular:master Nov 20, 2017
@cyrilletuzi cyrilletuzi deleted the patch-3 branch December 7, 2017 19:38
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants