1 - this adds nested routes to localMappings in ProxyPack. This makes it possible to easily map a nested folder structure.
2 - this also adds a simple cache to reduce reads from local filesystem
For example if your images dir contained app1 and app2 and you wanted to map all these directories to the local filesystem with the following structure:
Note: folders is a splat parameter. Splat parameters are like wildcards, only that they will capture the value of the identifier that comes after the .
1 - this adds nested routes to
localMappings
in ProxyPack. This makes it possible to easily map a nested folder structure.2 - this also adds a simple cache to reduce reads from local filesystem
For example if your images dir contained
app1
andapp2
and you wanted to map all these directories to the local filesystem with the following structure:You would use the following path to proxy all locally mapped assets in the ProxyPack plugin:
https://*.cloudfront.net/*/images/*folders/:image': `${__dirname}/site/images/`
Note: folders is a splat parameter. Splat parameters are like wildcards, only that they will capture the value of the identifier that comes after the .