The generated worker files should support chunkhash #29
Comments
@brijeshb42 Would you be willing to contribute a PR to add that support? |
That is kind of an unknown territory but I'll look into it and try to fix this. |
@brijeshb42 , I was running into the same issue. Here is how I fixed it, hopefully it gets you pointed in the right direction. Note: I also had the requirement that the build output go into the static/js directory. This change can be seen below in the One of the big difficulties I had lay in the fact that the compiler rules were hard coded as strings in the AddWorkerEntryPointPlugin.js:The following code was placed after
index.js:The following replaced the
The following code added an additional line to the
languages.jsThe following code replaced the
|
@mheavenor , have you forked and published to npm? |
I have not. I have published it only to an internal package server we use at my company. Feel free to publish it to npm if you would like! |
Right now, after webpack build, the worker files have names like
<language>.worker.js
even thoughtchunkhash
has been passed in webpack options. This won't help in cache busting. I think this plugin should use theoutput
option provided in webpack config to build the worker and language files too.The text was updated successfully, but these errors were encountered: