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

Asset tag create only works if file is targeted to root directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.1
    • None
    • cordova-browser
    • None

    Description

      Inside a plugin.xml file,

      <asset src="www/style/inappbrowser.css" target="style/inappbrowser.css"/>

      results in:

      cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/campbelg/IdeaProjects/wms-circ-app/platforms/browser/platform_www/style/inappbrowser.css

      Related to CB-13562, which fixed the case of an asset file whose target was the root directory. This bug is for assets whose target contains a directory.

      The expected behavior is described by the plugin.xml documentation:

      https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#asset

      Attachments

        Issue Links

          Activity

            People

              purplecabbage Jesse MacFadyen
              geocolumbus George Campbell
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: