StaticAssetsPostRendererResource

A PostRendererResource that copies the contents of a public/ directory, located at the project's root (parentDirectory), directly into the output root.

This allows users to ship static files (e.g. robots.txt, CNAME, favicon.ico) alongside the rendered document without any processing. The files land at the top level of the output resources.

If the public/ directory does not exist, no resources are emitted.

Parameters

parentDirectory

the project's working directory in which to look for a public/ subdirectory

Constructors

Link copied to clipboard
constructor(parentDirectory: File)

Properties

Link copied to clipboard

Whether this resource should be included in the output during live preview.

Functions

Link copied to clipboard
open override fun includeTo(resources: MutableSet<OutputResource>, rendered: CharSequence)

Collects resources and adds them to the output set.