Open svdoever opened 3 years ago
This should be no problem and makes total sense. The cache location should be configurable via the normal config.
The path should be added to the default config which can be overwritten by the user. https://github.com/ampproject/amp-toolbox/blob/main/packages/optimizer/lib/DomTransformer.js#L104
I would like to embed the toolbox-optimizer in an application which I package with https://github.com/vercel/pkg.
The following code in https://github.com/ampproject/amp-toolbox/blob/main/packages/optimizer/lib/cache.js:
breaks this possibility.
Could the cache location be made configurable?