Open Holi0317 opened 8 years ago
The question is how much you can minify the .js file. I'm not sure, have you tried using uglify on your server-worker.js?
Using a fresh app-drawer-template
template and build it.
Before minified: 9.8K After minfied: 5.3K
I don't think I quite understand. Weren't you talking about your service-worker.js?
Moving this to enhancement, since it actually requires a lot of thought on how we handle streams. We'll probably need to move this bug to the polymer-build repo also.
As a work around, I'd recommend running uglify on the service-worker.js file via the command line after each build.
Alternatively, You can now use the polymer-build library directly to customize your own build stream. You could uglify the service worker after it's written directly in your build task.
We'll leave this issue open as a way to gauge interest on the feature request. Please +1 the OP if you'd like to see this supported directly by the CLI.
+1
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Inspired by Total Tooling Tip and service worker can be minified.
This just make service worker to load faster and have a smaller size.