##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r7:d14fb562b896 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
css.ts
17 lines | 533 B | video/mp2t | TypeScriptLexer
import inject = require("./dom-inject");
import { id as mid} from "module";
import { TraceSource } from "@implab/core-amd/log/TraceSource";
const log = TraceSource.get(mid);
const plugin = {
load: async (id: string, require: Require, cb: (param: any) => void) => {
const url = require.toUrl(id);
try {
await inject.injectStylesheet(url);
cb({ url });
} catch (e) {
log.error("CSS plugin failed to load {0} ({1}): {2}", id, url, e);
}
}
};
export = plugin;