module.exports = (function () { var fontPath = 'topcoat-fonts/font/SourceSansPro/'; return function UISpaTopcoatFontPlugin() { this.configPlugin = function (ctx) { ctx.key='uiSpaTopcoatFont'; ctx.description='Adds Source Sans Pro fonts.'; }; this.configServer = function(ctx) { ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Light.otf', path: fontPath, fontFamily: 'Source Sans', fontWeight: 200}); ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Regular.otf', path: fontPath, fontFamily: 'Source Sans', fontWeight: 400}); ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Semibold.otf',path: fontPath, fontFamily: 'Source Sans', fontWeight: 600}); }; }; })();