-
Notifications
You must be signed in to change notification settings - Fork 79
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
Feature request: support fixed filename #19
Comments
@rottmann perhaps just an option to override |
I have no idea why I keep getting this error but it seems related to this ticket..
That worker filename sometimes changes to The webpack config :
|
Also saw the name ping pong between 0 and 1 in angular/angular-cli#13700 (comment). Was very problematic for our tests. |
Related to this, I'd like to be able to stop the generated file names when I do an import() statement in my worker having .worker.js appended at the end. (The import statement is in a function I serialsed and passed to the worker, so the actual generated file doesn't end in .chunk.worker.js, but just in .chunk.js.) Using templates for generated filenames as suggested would work for me as long as it also applied to dynamic imports. I'd raised another issue relating to htis on #43, but have since worked around it. |
With no fixed filename for the web worker bundle, is there a workaround to inject a If I had a single web worker I guess I could get the filename from the |
- chunkFilename is preserved from compilerOptions - use chunkName = worker name (or ID) + '.worker' - allow to override chunkFilename is needed (GoogleChromeLabs#19)
I just implemented |
The filename option is now released in 5.0.0. |
compilerOptions.output.chunkFilename
is[name].[hash].js
and i need to provide the generatedname.hash.worker.js
to sw-precache-webpack-pluginI cant use the generated .worker.js filename, the [name] could not be used from /sw-precache-webpack-plugin (ok thats their problem) and the hash seems not to match the generated file.
An option to set a fixed target filename in webpack config would be perfect:
The text was updated successfully, but these errors were encountered: