##// END OF EJS Templates
corrected i18n, css modules to support requirejs optimizer...
corrected i18n, css modules to support requirejs optimizer i18n bundles now conforms js modules with default exports (breaking change!)

File last commit:

r53:deb0ed6fb680 v1.0.7 default
r53:deb0ed6fb680 v1.0.7 default
Show More
css.ts
18 lines | 455 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 }) => {
cin
corrected i18n, css modules to support requirejs optimizer...
r53 if (config && config.isBuild) {
cin
fixes to css, nls to support requirejs optimizer
r36 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;