mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(dx): address self-review
This commit is contained in:
parent
7db3bde933
commit
a56d622df7
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,5 @@
|
|||||||
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||||
|
|
||||||
/.cache
|
/.cache
|
||||||
!/.cache/vite/.gitkeep
|
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
dist
|
dist
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
import packageJson from "../../package.json" with { type: "json" };
|
import packageJson from "../../package.json" with { type: "json" };
|
||||||
import { isDev } from "./utils";
|
import { isDev } from "./utils";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The URL prefix for assets (e.g. `assets/v1.2.3`).
|
||||||
|
*/
|
||||||
export const assetUrlFragment = `assets/v${packageJson.version}`;
|
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;
|
const assetPath = isDev ? assetUrlFragment + "/src" : assetUrlFragment;
|
||||||
|
|
||||||
export default assetPath;
|
export default assetPath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user