GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Needs extra support in build process for other types of service-workers · Issue #29501 · angular/angular-cli Closed as duplicate Closed as duplicate Copy link Labels DescriptionCommandserve, build DescriptionAngular has great support for its own @angular/pwa today. It works as it should, but does not provide much in form of extensibility. You can configure it to do most things, but you do not have full control over the code. This is why we want to use workbox instead. We can build workbox into our application from a production build, but this is cumbersome when developing the service-worker and we want to test features and functionality frequently. Then you have a code, compile, wait, test cycle which takes a lot of time. We want to be able to serve our service-worker using the built in vite dev-server in angular, like we can for @angular/pwa service-workers. Someone suggested using a custom esbuilder for this. I found two alternative builders which allow for esbuild plugins to be injected into the build process: So I disected the build and the serve flow in angular-cli, in order to see how we could extend the build process with our needs: ng buildWhen we run @angular-devkit:application ng serve@angular-devkit:dev-server We see that Now the Describe the solution you'd likeWe need to be able to execute a function at the same spot and with the same type of input at you are giving the My suggestion is this: Example of such a function: export default function postBundle( workspaceRoot, baseHref, indexHtmlOutput, outputFiles, assetFiles ) { // Whatever logic users need to perform at this point } Describe alternatives you've consideredWe've tried to add our own custom builder, but the results from Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |