A build-system independent API for applying transformations to files and caching the results in a persistent cache. Version 2.0.0 (stable) uses vinyl files and supports caching based on file hash or modification time. Alternatives like Gulp or Webpack are full build systems; this is a lightweight library focused solely on transform caching.
npm install file-transform-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a cache with a transform pipeline, transforms a single file, and saves the cache.
Call ftc.save() after all transformations are done.
Ensure each transform function invokes next(null, file) after processing.
Set options.path to a valid file path for the cache.
Use options.hash: true to enable content-based caching.
Check for result.err before accessing result.file.
Provide a valid string path to the cache file in the options object.
Ensure the transform function signature is (file, next) and that next is called.