Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to custom remote file url #104

Open
hung-doan opened this issue Jun 2, 2016 · 0 comments
Open

Is it possible to custom remote file url #104

hung-doan opened this issue Jun 2, 2016 · 0 comments

Comments

@hung-doan
Copy link

{
  "files": {
    "jquery": {
      "version": "afb90752e0a90c24b7f724faca86c5f3d15d1178",
      "filename": "lib/jquery.min.js"
    },
  },
  "load": [
    "lib/jquery.min.js",
  ],
  "version": "3feefac61c0663c01c020a34be57fdbc0e9f88bf"
}
var loader = new CordovaAppLoader({
  fs: fs,
  serverRoot: 'http://data.madebymark.nl/cordova-app-loader/',
  localRoot: 'app',
  cacheBuster: true, // make sure we're not downloading cached files.
  checkTimeout: 10000 // timeout for the "check" function - when you loose internet connection
});

Currently download url for "lib/jquery.min.js" is :

http://data.madebymark.nl/cordova-app-loader/lib/jquery.min.js

But I want my custom url: :

http://data.madebymark.nl/cordova-app-loader?path=lib/jquery.min.js

Is is possible to do that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant