Skip to content

Commit

Permalink
fix(#76): katex is not loaded in plugins panel
Browse files Browse the repository at this point in the history
  • Loading branch information
cqroot committed Mar 3, 2023
1 parent be8f164 commit a660684
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.5.6",
"description": "",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"dist": "sh scripts/prepare.sh && webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"postinstall": "npm run dist",
"prepare": "npm run dist",
"update": "npm install -g generator-joplin && yo joplin --update",
Expand Down
8 changes: 8 additions & 0 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
ROOT_DIR=$(dirname "$SCRIPT_DIR")

mkdir -p "$ROOT_DIR/src/katex/"
cp "$ROOT_DIR/node_modules/katex/dist/katex.min.js" "$ROOT_DIR/src/katex/"
cp "$ROOT_DIR/node_modules/katex/dist/katex.min.css" "$ROOT_DIR/src/katex/"

0 comments on commit a660684

Please sign in to comment.