bigbuffet-rw/app/soapbox/utils/static.ts

14 lines
366 B
TypeScript
Raw Normal View History

2022-04-24 12:28:07 -07:00
/**
* Static: functions related to static files.
* @module soapbox/utils/static
*/
import { join } from 'path';
2022-11-15 12:48:54 -08:00
import * as BuildConfig from 'soapbox/build-config';
2022-04-24 12:28:07 -07:00
/** Gets the path to a file with build configuration being considered. */
export const joinPublicPath = (...paths: string[]): string => {
return join(BuildConfig.FE_SUBDIRECTORY, ...paths);
};