Right now it only works when you add the plugins with the flag. Current working use case: -Create a project -Add platform -Add plugins with browserify flag
Adding a platform after does not use the proper browserify-prepare. Obviously an issue. We just realized an issue we need to solve first. https://issues.apache.org/jira/browse/CB-7227 Also, the case for "cordova prepare --browserify" on an existing project needs to be handled. We are also thinking about saving the browserify flag, so that way we do not need to keep adding the flag after it has been used once. Where would be the best place to save this? "cordova create --browserify test com.example.test browserifyTest" Saves browserify flag for use throughout the project. Suraj. On Tuesday, July 29, 2014 2:21 PM, Michal Mocny <mmo...@chromium.org> wrote: Just to confirm: Can I run "cordova prepare --browserify" is any existing workspace, or would I have needed to add all plugins / platforms with that flag as well? -Michal On Tue, Jul 29, 2014 at 3:27 PM, Steven Gill <stevengil...@gmail.com> wrote: > cordova prepare --browserify works too > > https://issues.apache.org/jira/browse/CB-7001 > https://issues.apache.org/jira/browse/CB-7190 > > > On Tue, Jul 29, 2014 at 12:02 PM, Suraj Pindoria < > suraj.pindo...@yahoo.com.invalid> wrote: > > > Hi everyone, > > > > I have been working with Anis and Steve to add browserify support in > > cordova-lib and cordova-cli. They way this is being done is through a > flag > > in the CLI which then calls prepare-browserify versus the standard > prepare, > > an example: > > "cordova plugin --browserify add org.apache.cordova.*" > > "cordova plugin --browserify rm org.apache.cordova.*" > > > > > > So far it has only been tested using iOS and Android and requires that > the > > browserify flag is present whenever you add or remove a plugin. Let me > > know if you have any questions or concerns. > > > > https://github.com/apache/cordova-lib/pull/66 > > > > https://github.com/apache/cordova-cli/pull/185 > > > > > > Thanks, > > Suraj. >