cordova-plugin-resource-server
Cordova Plugin to automatically update and off-line running.
Redirect resource "www/index.html" to website which publish in device storage.
It not offer unzip and fetch fearure.
Usage
var contextPath = (cordova.file.dataDirectory).replace('file://', '') + 'web';
var contextPort = 10429;
var servePath = (cordova.file.dataDirectory).replace('file://', '') + 'resources';
var servePort = 10433;
ResourceServer.start(contextPath, contextPort, servePath, servePort, function () {
}, function (err) {
});
Resource Directory
Offline files location.
资源请求路径
Context Directory
Local website location.
Request Path
- List directory
- Read file (image/audio...)
Sample
/data/data/com.app.domain/files
├─resources
├─test.mp3
├─web
├─index.html
```
// index.html
```
iOS
developing