-
Clone this repository to your
.obsidian\pluginsdirectory, and move into it. -
Run
npm installto install all the stuff you need, Including:- vue3 sfc support
- vue3 tsx support
- typescript
- esbuild
-
Run
npm run devto compile code and generate amain.js, which is the final output. Yourmain.jswill 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 buildto 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.jsfile changes, so you don't need do it yourself every time you make changes to code.