I'm using code splitting / lazy loading of components that are partly split based on which page you are at. However if I deploy a new version all the hashes changes and the old files are gone using this module. So then changing page just gives a 404 error when it requests that's page js.
But the import command itself doesn't seem to be try-catchable, even when done it still breaks the page.
What is the expected behavior?
Some way to keep old files for a defined time.
What is motivation or use case for adding/changing the behavior?
Sites not being broken during new deployments
How should this be implemented in your opinion?
Allow an option to only delete files after x amount of days. So it can for example only delete files that haven't changed for 30 days.
Feature request
I'm using code splitting / lazy loading of components that are partly split based on which page you are at. However if I deploy a new version all the hashes changes and the old files are gone using this module. So then changing page just gives a 404 error when it requests that's page js.
https://webpack.js.org/guides/code-splitting/
I have tried webpack standard splitting:
And
loadable/component
But the
import
command itself doesn't seem to be try-catchable, even when done it still breaks the page.What is the expected behavior? Some way to keep old files for a defined time.
What is motivation or use case for adding/changing the behavior? Sites not being broken during new deployments
How should this be implemented in your opinion? Allow an option to only delete files after x amount of days. So it can for example only delete files that haven't changed for 30 days.
For now I have to stop using this plugin :'(