You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,10 @@ For plugins created with the old template (SDK 1.1.1), replace the build script
37
37
"build": "webpack && npx build-docspace-plugin"
38
38
```
39
39
40
+
:::note
41
+
To ensure the new npx command works correctly, you need to update the globally installed *@onlyoffice/docspace-plugin-sdk* package to version 2.0.0 or higher.
42
+
:::
43
+
40
44
## Building a plugin
41
45
42
46
To build a plugin, you need the *yarn* package manager to be installed. After that, follow the instructions below:
@@ -61,4 +65,6 @@ yarn build
61
65
62
66
This command generates the obfuscated code from the entire project and collects it into the *plugin.js* file using the *webpack* npm package.
63
67
64
-
The *dist* folder will be created in the root plugin folder and the plugin archive will be placed in it. This archive is the completed plugin that can be uploaded to the DocSpace portal.
68
+
The *dist* folder will be created in the root plugin folder and the plugin archive will be placed in it. This archive is the completed plugin that can be uploaded to the DocSpace portal.
69
+
70
+
The old *createZip* script is no longer required and can be safely removed.
0 commit comments