mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
…
|
||
---|---|---|
.. | ||
api | ||
src | ||
tools | ||
.gitignore | ||
.npmignore | ||
GENERATOR_DOC.md | ||
package-lock.json | ||
package.json | ||
plugin.config.json | ||
README.md | ||
tsconfig.json | ||
webpack.config.js |
Worker example
This plugin demonstrates how to create a Worker
and, within it, use transformers.js
for text classification.
At present, this plugin only works on desktop. However, it should also be possible to load the Worker
from a plugin panel or dialog on mobile (but not web).
Notes:
plugin.config.json
was updated to target web. This allows the plugin to loadtransformers.js
from the worker without depending onnode-loader
.- This simplifies the build process and should make it easier to add mobile and web support to this plugin.
- WASM files and other assets are copied by
tools/copyAssets.js
.