Skip to content

API Reference / @gtkx/cli / @gtkx/cli/env

@gtkx/cli/env ​

Ambient types for asset imports with the ?resource, ?icon, ?font, ?url, ?raw and ?inline queries, and for CSS imports.

Modules ​

ModuleDescription
*?fontBundles a font with the app and makes its family available to Pango.
*?iconBundles an icon into the app's private icon theme. ?icon=name chooses its name; the file name is the default.
*?inlineInlines a file into the bundle.
*?rawImports a file's text.
*?resourceBundles a file of any type as a GResource. ?resource=/exact/path chooses its resource path.
*?urlProvides a file's path on disk.
*.cssInstalls a stylesheet's rules globally for the app's lifetime.
*.css?urlProvides a stylesheet's file path without installing the stylesheet.