-
Clone this repository to your
.obsidian\plugins
directory, and move into it. -
Run
npm install
to install all the stuff you need, Including:- vue3 sfc support
- vue3 tsx support
- typescript
- esbuild
-
Run
npm run dev
to compile code and generate amain.js
, which is the final output. Yourmain.js
will be updated simultaneously with the change of your source code files.
If above steps work, you can turn on 'Vue Template' plugin in Obsidian. Click the dice like button on the left ribbon, a new tab will open on the right and says "Hello,Developer!".
- When you get ready to build a release, run
npm run build
to create it. This will remove all codemaps and minify code size.
- hot-reload plugin may be very helpful in your developing. It reloads the plugin whose
main.js
file changes, so you don't need do it yourself every time you make changes to code.