Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11415

Can we merge all the cordova plugin objects in one single file

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-browser
    • Labels:
    • Environment:

      All the platforms

      Description

      Hi,
      Is it possible to merge all the plugin objects in one single file so that the number of HTTP requests to pull the cordova plugin libraries shall be reduced and the performance can be improved??
      The reason I am asking for this feature because when creating an app that contains 20 plugins so then the browser has to request unminified files 20 times before the body is rendered. If we collab all the plugins in a single file, all the plugins shall be accessed from a single file.
      Also we can use uglify/minify the plugin file during after_prepare hook which can reduce the file size, which can be totally upto the developer's choice.
      It could also be a feature in the CLI itself that will minify and uglify the plugins during release mode

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              arcoirislabs Arcoiris Labs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: