##// END OF EJS Templates
Added tag v1.0.5 for changeset 346ba910a542
Added tag v1.0.5 for changeset 346ba910a542

File last commit:

r36:a1a1ef050ecc 1.0.0-rc17 default
r51:0b41300b6dd9 default
Show More
css.ts
18 lines | 445 B | video/mp2t | TypeScriptLexer
cin
fixes to css, nls to support requirejs optimizer
r36 import inject from "./dom-inject";
interface OnLoad {
(result?: any): void;
error(err: any): void;
}
cin
added 'dom-inject' and 'css' modules
r6
const plugin = {
cin
fixes to css, nls to support requirejs optimizer
r36 load: (id: string, require: Require, cb: OnLoad, config: { isBuild?: boolean }) => {
if (config.isBuild) {
cb();
} else {
const url = require.toUrl(id);
inject.injectStylesheet(url).then(() => cb({ url }), e => cb.error(e));
cin
added 'dom-inject' and 'css' modules
r6 }
}
};
export = plugin;