[ https://issues.apache.org/jira/browse/CB-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874852#comment-13874852 ]
Braden Shepherdson commented on CB-5783: ---------------------------------------- That is the expected behavior. platforms/* are build artifacts, and generally should not be edited by hand. The place to edit your code is in the top-level www/, and this is copied on cordova prepare. I'm sorry you lost some work in the platforms/android/assets/www directory. The next version of the command-line tools release (currently having problems because of npm failures) should include a patch that will make the top-level www and config.xml appear in IDEs like Eclipse and Xcode, rather than the platforms/android/assets/www, so that edits will be happening in the right places. You'll still need to run cordova prepare after editing, though, at least for now. > Cordova/plugin_list - module.exports are always empty > ----------------------------------------------------- > > Key: CB-5783 > URL: https://issues.apache.org/jira/browse/CB-5783 > Project: Apache Cordova > Issue Type: Bug > Affects Versions: 3.3.0 > Environment: Test the app in a desktop browser > Reporter: Kevin Lucich > Labels: cordova, plugin_list, plugins > Fix For: 3.3.0 > > > When i tested the apps in desktop browser (version Cordova 3.0.0) i don't > received any error. when i update Cordova i note that the file > "cordova_plugins.js" has variable empty ("module.exports" is empty array). > Before the update this file contained the list of installated plugins. > Why is now empty? > This problem causes the fact that I receive the error "navigator.connection > is undefined" > ///////////////////////////////////// > Old Cordova - after installations a plugin > cordova.define('cordova/plugin_list', function(require, exports, module) { > module.exports = [ > [...] > { > "file": > "plugins/org.apache.cordova.network-information/www/network.js", > "id": "org.apache.cordova.network-information.network", > "clobbers": [ > "navigator.connection", > "navigator.network.connection" > ] > }, > [...] > ] > }); > ///////////////////////////////////// > Cordova 3.3.0 > cordova.define('cordova/plugin_list', function(require, exports, module) { > module.exports = []; > module.exports.metadata = > // TOP OF METADATA > {} > // BOTTOM OF METADATA > }); -- This message was sent by Atlassian JIRA (v6.1.5#6160)