Files
ncd-fe/packages/pl-fe/src/utils/static.ts
marcin mikołajczak 966b04fdf0 Call it pl-fe internally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:41:08 +02:00

14 lines
380 B
TypeScript

/**
* Static: functions related to static files.
* @module pl-fe/utils/static
*/
import { join } from 'path-browserify';
import * as BuildConfig from 'pl-fe/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 };