Files
ncd-fe/src/utils/static.ts
marcin mikołajczak a58c52631e Arrow functions and so
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-05-13 01:18:04 +02:00

14 lines
384 B
TypeScript

/**
* Static: functions related to static files.
* @module soapbox/utils/static
*/
import { join } from 'path-browserify';
import * as BuildConfig from 'soapbox/build-config';
/** Gets the path to a file with build configuration being considered. */
const joinPublicPath = (...paths: string[]): string => join(BuildConfig.FE_SUBDIRECTORY, ...paths);
export { joinPublicPath };