13 lines
366 B
TypeScript
13 lines
366 B
TypeScript
/**
|
|
* 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);
|
|
};
|