makestatic-resolve-file

1.0.25 • Public • Published

Resolve File

Resolves output file paths

Resolves the output file paths and updates file content.



Install

yarn add makestatic-resolve-file

API

ResolveFile

Sets the output path for files that are about to be written to disc and calls update() on the file so that files assigned a seal function may update the file content buffer.

.sources

ResolveFile.prototype.sources(file, context)

Resolves the file output path and file content.

If the file has already had an output path set it is assumed to be a path relative to the output directory and modified to include the output directory in the file path.

  • file Object the current file.
  • context Object the processing context.

License

MIT


Created by mkdoc on March 12, 2017

Package Sidebar

Install

npm i makestatic-resolve-file

Weekly Downloads

1

Version

1.0.25

License

MIT

Last publish

Collaborators

  • muji
  • tmpfs