Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

fix(@schematics/angular): ignore system files in service worker #263

Closed
wants to merge 1 commit into from
Closed

fix(@schematics/angular): ignore system files in service worker #263

wants to merge 1 commit into from

Conversation

cyrilletuzi
Copy link
Contributor

Fixes angular/mobile-toolkit#180

When copying the assets, the CLI includes system files (e.g. .DS_Store and Thumbs.db). As a consequence, they are included in the service worker manifest as files to cache. But such file may (and should) not be deployed to the server, then a file will be missing, then the service worker installation will fail and so all the offline feature won't work.

This PR ensure the service worker will ignore these system files.

@hansl @filipesilva

Fixes angular/mobile-toolkit#180

When copying the assets, the CLI includes system files (e.g. .DS_Store and Thumbs.db). As a consequence, they are included in the service worker manifest as files to cache. But such file may (and should) not be deployed to the server, then a file will be missing, then the service worker installation will fail and so all the offline feature won't work.

This PR ensure the service worker will ignore these system files.
@cyrilletuzi
Copy link
Contributor Author

A better solution may be for the CLI to not copy those files when building.

@cyrilletuzi
Copy link
Contributor Author

Closing as replaced by a better solution in angular/angular-cli#8549

hansl pushed a commit to angular/angular-cli that referenced this pull request Nov 20, 2017
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.
hansl pushed a commit to angular/angular-cli that referenced this pull request Nov 23, 2017
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.
@cyrilletuzi cyrilletuzi deleted the patch-5 branch December 16, 2017 17:42
dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this pull request Apr 23, 2018
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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants