cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Santana <>
Subject Re: Merges as a feature
Date Tue, 08 Sep 2015 15:27:57 GMT
Hi Nikhil
   I think I owe you an answer for a question you posted, on how mfp
handles this

In regards to MFP in the latest version (Aug2015). Now we have a two way of
creating hybrid apps.
In the new way "MFP Cordova Apps" the directory structure is the same as a
standard cordova directory structure, our default template doesn't create
the "merges", user can create the merges folder and it will work since we
use the cordova-cli as the engine. User can also provide a template that
could have the merges and any files, and this another way of getting the
merges folder created.

This is strategy moving forward, mfp is a component of the user's Cordova
App, so mfp doesn't constraints or dictates how user should manage their
web app files.

For the other type of hybrid apps, we have a more prescriptive directory
structure (take into account that this was establish before cordova 3.x and
cordova project structure existed)
user will have a "common" folder (similar to www)
then it will have a folder per platform/environment "iphone", "android",
then inside the this "iphone" user will place files to merge into built
"www". The thing is the merge worked differently based on the type of
For .js and .css, it is append to the same filename in common if exist, if
it doesn't exist then is a simple copy
For other file types (.html, images, etc..) it replaces the file if it
exist in common, if it doesn't exist then is a simple copy


On Wed, Sep 2, 2015 at 9:24 AM Raymond Camden <>

> On Wed, Sep 2, 2015 at 7:33 AM, Nikhil Khandelwal
> <> wrote:
> > I sort of agree with Raymond that is a useful functionality and is easy
> enough to do this for users - by using a 'convention'. Customizing the
> build system using hooks sounds more complicated for the developer. How
> does ionic & mfp actually achieve this? How does a developer specify
> specific versions of files that need to be included only on certain
> platforms.
> >
> > -Nikhil
> >
> Here are the Ionic docs for the same idea:
> --
> ===========================================================================
> Raymond Camden, Developer Advocate for MobileFirst at IBM
> Email :
> Blog :
> Twitter: raymondcamden
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message