Skip to content

Commit e09c198

Browse files
committed
Revert "fix(@angular-devkit/build-angular): correctly generate ServiceWorker config on Windows"
This reverts commit cd4260f.
1 parent 17aa816 commit e09c198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/service-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CliFilesystem implements Filesystem {
4646
for await (const entry of await fs.opendir(dir)) {
4747
if (entry.isFile()) {
4848
// Uses posix paths since the service worker expects URLs
49-
items.push('/' + path.relative(this.base, path.join(dir, entry.name)).replace(/\\/g, '/'));
49+
items.push('/' + path.posix.relative(this.base, path.posix.join(dir, entry.name)));
5050
} else if (entry.isDirectory()) {
5151
subdirectories.push(path.join(dir, entry.name));
5252
}

0 commit comments

Comments
 (0)