makestatic-resolve-file
v1.0.25
Published
Resolves output file paths
Downloads
16
Readme
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