Skip to main content

Module static_files

Module static_files 

Source
Expand description

Copy non-source static files into an output tree.

The counterpart to the typescript/scss processors: everything they don’t transform (images, fonts, JSON, .well-known, …) is copied across verbatim, so build (and any custom build script) ends up with a complete output directory.

Functions§

copy_static
Copy files from src to out (preserving structure), skipping things a build step produces or ignores: .ts/.tsx/.mts/.scss/.tera sources, _-prefixed partials, and any path the reject list excludes (config / secrets / source). Symlinks are skipped entirely — file or directory; the pipeline’s preflight, not this standalone helper, honors SymlinkMode. Returns the number of files copied.