This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a5bcabf77 doc(plugin): notes for --link when the linking is lost 
(#1419)
0a5bcabf77 is described below

commit 0a5bcabf77a1c9abb8746f1672302e341dea87b2
Author: Manuel Beck <manuelbec...@outlook.de>
AuthorDate: Tue Jun 10 15:19:15 2025 +0200

    doc(plugin): notes for --link when the linking is lost (#1419)
---
 www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md | 3 +--
 www/docs/en/dev/guide/hybrid/plugins/index.md          | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md 
b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md
index f748773b5f..ab8c58f735 100644
--- a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md
+++ b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md
@@ -193,8 +193,7 @@ Cordova app as usual and add the plugin with the `--link` 
option:
 cordova plugin add ../path/to/my/plugin/relative/to/project --link
 ```
 
-This creates a symbolic link instead of copying the plugin files, which 
enables you
-to work on your plugin and then simply rebuild the app to use your changes.
+This creates a symbolic link instead of copying the plugin files, which 
enables you to work on your plugin and then simply rebuild the app to use your 
changes. The plugin should be added after the platform, or the link will not 
work. The link will also be lost if you re-add the platform or [restore the 
project](../../../platform_plugin_versioning_ref/index.md) with `cordova 
prepare`. In that case, you'll need to re-add the plugin to restore the link.
 
 ## Validating a Plugin using Plugman
 
diff --git a/www/docs/en/dev/guide/hybrid/plugins/index.md 
b/www/docs/en/dev/guide/hybrid/plugins/index.md
index f748773b5f..ab8c58f735 100644
--- a/www/docs/en/dev/guide/hybrid/plugins/index.md
+++ b/www/docs/en/dev/guide/hybrid/plugins/index.md
@@ -193,8 +193,7 @@ Cordova app as usual and add the plugin with the `--link` 
option:
 cordova plugin add ../path/to/my/plugin/relative/to/project --link
 ```
 
-This creates a symbolic link instead of copying the plugin files, which 
enables you
-to work on your plugin and then simply rebuild the app to use your changes.
+This creates a symbolic link instead of copying the plugin files, which 
enables you to work on your plugin and then simply rebuild the app to use your 
changes. The plugin should be added after the platform, or the link will not 
work. The link will also be lost if you re-add the platform or [restore the 
project](../../../platform_plugin_versioning_ref/index.md) with `cordova 
prepare`. In that case, you'll need to re-add the plugin to restore the link.
 
 ## Validating a Plugin using Plugman
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to