Skip to content
Snippets Groups Projects
Commit 8a78bf3b authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette] Dome.getStatic()

parent fb96307b
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,16 @@ export function getWorkingDir(): string { return System.getWorkingDir(); } ...@@ -119,6 +119,16 @@ export function getWorkingDir(): string { return System.getWorkingDir(); }
/** Current process ID.. */ /** Current process ID.. */
export function getPID(): number { return System.getPID(); } export function getPID(): number { return System.getPID(); }
// The __static path is provided by webpack at execution time, but the static
// type system is not aware of that for now. This is a workaround to avoid
// an error during compilation.
declare const __static: string;
/** Path to application static resources. */
export function getStatic(file?: string): string {
return file ? System.join(__static, file) : __static;
}
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// --- Application Emitter // --- Application Emitter
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment