You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2017/11/10 13:50:01 UTC

[jira] [Created] (CB-13562) Asset tag creates a directory with same name of targeted file

Simon MacDonald created CB-13562:
------------------------------------

             Summary: Asset tag creates a directory with same name of targeted file
                 Key: CB-13562
                 URL: https://issues.apache.org/jira/browse/CB-13562
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-browser
    Affects Versions: 5.0.1
            Reporter: Simon MacDonald
            Assignee: Jesse MacFadyen


Asset tag appears to be broken in the browser platform. According to the docs at http://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#asset when you add an asset tag like:

{code:xml}
<asset src="www/foo.js" target="foo.js" />
{code}

it should copy www/foo.js to platforms/browser/www/foo.js but instead it creates a subdirectory called foo.js and the full path to the file is platforms/browser/www/foo.js/foo.js.

If you want to duplicate this issue please create a new project then:

cordova platform add browser@5.0.1
cordova plugin add phonegap-plugin-push
cordova build browser

then you will see that platforms/browser/www/ServiceWorker.js/ServiceWorker.js exists when it should be platforms/browser/www/ServiceWorker.js.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org