[ 
https://issues.apache.org/jira/browse/CB-13185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16133061#comment-16133061
 ] 

Connor Pearson commented on CB-13185:
-------------------------------------

>From the hook's comments:

{code}
The <content> tag "src" attribute is modified to point to http://localhost:0
{code}

You should be able to just make that change manually. I think it might be 
preferable as well. Allowing the plugin to rewrite your config.xml will 
reformat the file and remove all comments.

> cordova-labs-local-webserver hooks don't work on cordova cli 7
> --------------------------------------------------------------
>
>                 Key: CB-13185
>                 URL: https://issues.apache.org/jira/browse/CB-13185
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>    Affects Versions: [email protected]
>            Reporter: Pieter De Bruyne
>            Priority: Critical
>              Labels: backlog, tools-next
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> cordova-labs-local-webserver modifies the config.xml using the 
> after_plugin_install hook.
> however it appears cordova prepare restores the config.xml so the changes 
> done by the hook are undone.
> Maybe before_prepare hook is a better idea ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to