-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to reduce bundle size, font awesome and remixicon are no longer included as bulti-in icon packs
- Loading branch information
Showing
13 changed files
with
844 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { promises } from "fs"; | ||
const { readFile } = promises; | ||
|
||
/** | ||
* @type {import("esbuild").Plugin} | ||
*/ | ||
const iconList = { | ||
name: "obsidian-plugin", | ||
setup: (build) => { | ||
build.onLoad( | ||
{ filter: /src\/icons\/[^\/]+?\.txt$/, namespace: "file" }, | ||
async ({ path }) => { | ||
const lines = (await readFile(path, "utf8")).split(/\r?\n/); | ||
return { | ||
contents: JSON.stringify(lines), | ||
loader: "json", | ||
}; | ||
}, | ||
); | ||
}, | ||
}; | ||
export default iconList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import LucideIcon from "./lucide-v0.17.2.txt"; | ||
import ObsidianIcon from "./obsidian-v0.13.27.txt"; | ||
|
||
export { LucideIcon, ObsidianIcon }; |
Oops, something went wrong.