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';
import * as BuildConfig from 'soapbox/build_config';
/** Gets the path to a file with build configuration being considered. */
export const joinPublicPath = (...paths: string[]): string => {
return join(BuildConfig.FE_SUBDIRECTORY, ...paths);
};