Bundle Files with Code Plugin

Adding a regular file

  1. Add a file to packages/plugin-core/assets
  2. To access the file in the code, use the following snippet:
    const assetUri = VSCodeUtils.getAssetUri(context);
    const uri = VSCodeUtils.joinPath(
      assetUri,
      "dendron-ws",
      "vault",
      "welcome.html"
    );

Backlinks