mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 10:08:52 +01:00
15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import packageJson from "../../package.json" with { type: "json" };
|
|
import { isDev } from "./utils";
|
|
|
|
/**
|
|
* The URL prefix for assets (e.g. `assets/v1.2.3`).
|
|
*/
|
|
export const assetUrlFragment = `assets/v${packageJson.version}`;
|
|
|
|
/**
|
|
* Similar to the {@link assetUrlFragment}, but on dev mode it also contains the `/src` suffix.
|
|
*/
|
|
const assetPath = isDev ? assetUrlFragment + "/src" : assetUrlFragment;
|
|
|
|
export default assetPath;
|