Building plugin
To build a plugin, you need to have npm (included with Node.js) installed. The plugin template builds with Vite 8, which requires Node.js ^20.19.0 || >=22.12.0. After that, follow the instructions below:
-
Open the terminal and go to the plugin root folder:
cd pdf-converter -
Install all the necessary dependencies (if this was not done previously when creating the plugin template):
npm install -
Build an archive for uploading to the portal:
npm run buildThis command bundles the entire project into a
plugin.jsES module using thevitenpm package and then packs it withnpx build-docspace-plugin.
The maximum size of the plugin archive and each file within it must not exceed 5 MB.
The dist folder will be created in the plugin root folder and the plugin archive will be placed in it. This archive is the completed plugin that can be uploaded to the ONLYOFFICE Apps portal.