<!DOCTYPE HTML>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta charset="utf-8">

  <title>Demo</title>
  <script id="sap-ui-bootstrap" src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
    data-sap-ui-libs="sap.m"
    data-sap-ui-frameOptions="allow"
    data-sap-ui-theme="sap_belize_plus"
    data-sap-ui-compatVersion="edge"
    data-sap-ui-preload="async"
    data-sap-ui-resourceRoots='{"demo": "./"}'
  >
  </script>

  <script>
    sap.ui.getCore().attachInit(function() {
      sap.ui.component({
        manifest: true,
        name: "demo",
      }).then(function(createdComponent) {
        sap.ui.require([
          "sap/m/Shell",
          "sap/ui/core/ComponentContainer",
        ], function(Shell, ComponentContainer) {
          new Shell({
            app: new ComponentContainer({
              component: createdComponent,
              height: "100%"
            })
          }).placeAt("content");
        });
      });
    });
  </script>
</head>

<body class="sapUiBody" id="content">
</body>

</html>
{
  "_version": "1.33.0",
  "start_url": "index.html",
  "sap.app": {
    "id": "demo",
    "type": "application",
    "title": "foo",
    "applicationVersion": {
      "version": "1.0.0"
    }
  },
  "sap.ui": {
    "technology": "UI5",
    "deviceTypes": {
      "desktop": true,
      "tablet": true,
      "phone": true
    }
  },
  "sap.ui5": {
    "componentName": "demo",
    "dependencies": {
      "minUI5Version": "1.40.0",
      "libs": {
        "sap.m": {}
      }
    },
    "resources": {
      "js": [{
        "uri": "customResource/js/testJS.js"
      }],
      "css": [{
        "uri": "customResource/css/style.css"
      }]
    },
    "contentDensities": {
      "compact": true,
      "cozy": false
    },
    "rootView": {
      "id": "rootView",
      "viewName": "demo.view.App",
      "type": "XML",
      "async": true
    },
    "routing": {
      "routes": [{
        "pattern": "",
        "name": "home",
        "target": "home"
      }],
      "targets": {
        "home": {
          "viewName": "Home",
          "viewLevel": 1
        },
        "notFound": {
          "viewName": "Home",
          "transition": "show"
        }
      },
      "config": {
        "routerClass": "sap.m.routing.Router",
        "viewType": "XML",
        "async": true,
        "viewPath": "demo.view",
        "transition": "slide",
        "controlId": "myApp",
        "controlAggregation": "pages",
        "bypassed": {
          "target": "notFound"
        }
      }
    }
  }
}
<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" displayBlock="true">
	<App id="myApp" class="myApp"/>
</mvc:View>
<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" displayBlock="true">
  <Page id="homePage" title="Home">
    <Text id="message" text="Custom CSS &amp; JS not loaded. Activate metadata in Component.js."/>
  </Page>
</mvc:View>
sap.ui.define([
  "sap/ui/core/UIComponent"
], function(UIComponent) {
  "use strict";
  
  return UIComponent.extend("demo.Component", {
    metadata: {manifest: "json"},
    init: function() {
      UIComponent.prototype.init.apply(this, arguments);
      this.getRouter().initialize();
    }

  });
});
#__xmlview0--homePage{
  background-color: #333;
}
#__xmlview0--message::before{
  content: "CSS file loaded!";
  color: #fff;
}
(function(){
  alert("JS file loaded!");
})();