url(s) to the css file.
Optional
timeout: numberTime to wait for the file to be loaded (optional).
A cancelable promise resolving the css file(s).
import loadCSS from "apprt-core/load-css";
loadCSS(require.toUrl("./test.css")).then(function(result){
// result.url = url of css
// result.link = link created in head
// css loaded
});
import loadCSS from "apprt-core/load-css";
loadCSS([
require.toUrl("./a.css"),
require.toUrl("./b.css")
]).then(function(results){
// result[0].url = url of css
// result[0].link = link created in head
// css loaded
});
Generated using TypeDoc
Loads a css file and returns a Promise to support waiting for the load.